Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial ROS2 Jazzy support #25

Merged
merged 1 commit into from
Jul 3, 2024
Merged

Initial ROS2 Jazzy support #25

merged 1 commit into from
Jul 3, 2024

Conversation

xbroquer
Copy link
Contributor

@xbroquer xbroquer commented Jul 2, 2024

Hi,

I tried to integrate ROS2 Jazzy support in the same way than Iron.

Here the log of compilation:

`make -C tests/common
make[1]: Entering directory '/home/az01958/src/safe_drive/tests/common'
ros2msg_to_rs -i ../../supplements/ros2/src -o msgs
generating: msgs/example_msg/msg/buz.rs
generating: msgs/example_msg/srv/add_three_ints.rs
generating: msgs/example_msg/msg/foo.rs
generating: msgs/example_msg/msg/std_msg.rs
generating: msgs/example_msg/msg/num.rs
generating: msgs/example_msg/msg.rs
generating: msgs/example_msg/srv.rs
generating: msgs/mod.rs
generating: msgs/example_msg/mod.rs
make[1]: Leaving directory '/home/az01958/src/safe_drive/tests/common'
cd supplements/ros2 && colcon build
Starting >>> example_msg
Finished <<< example_msg [1.74s]

Summary: 1 package finished [1.94s]
cargo build
warning: extern fn uses type u128, which is not FFI-safe
--> src/rcl/jazzy.rs:15087:9
|
15087 | / unsafe extern "C" fn(
15088 | | serialization_support: *mut rosidl_dynamic_typesupport_serialization_support_impl_t,
15089 | | dynamic_data: *mut rosidl_dynamic_typesupport_dynamic_data_impl_t,
15090 | | id: rosidl_dynamic_typesupport_member_id_t,
15091 | | value: u128,
15092 | | ) -> rcutils_ret_t,
| |__________________________^ not FFI-safe
|
= note: 128-bit integers don't currently have a known stable ABI
= note: #[warn(improper_ctypes_definitions)] on by default

warning: extern fn uses type u128, which is not FFI-safe
--> src/rcl/jazzy.rs:15285:9
|
15285 | / unsafe extern "C" fn(
15286 | | serialization_support: *mut rosidl_dynamic_typesupport_serialization_support_impl_t,
15287 | | dynamic_data: *mut rosidl_dynamic_typesupport_dynamic_data_impl_t,
15288 | | value: u128,
15289 | | out_id: *mut rosidl_dynamic_typesupport_member_id_t,
15290 | | ) -> rcutils_ret_t,
| |__________________________^ not FFI-safe
|
= note: 128-bit integers don't currently have a known stable ABI

warning: safe_drive (lib) generated 2 warnings
Finished dev [unoptimized debuginfo] target(s) in 0.09s
`

Result of test:
test result: ok. 50 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 16.10s

Can you please review and help to enable Jazzy support ?

Thanks!

Signed-off-by: Xavier BROQUERE <[email protected]>
@ytakano ytakano merged commit 55181c5 into tier4:main Jul 3, 2024
@ytakano
Copy link
Collaborator

ytakano commented Jul 3, 2024

Thank you!
I will check it in this week.

@ytakano
Copy link
Collaborator

ytakano commented Jul 5, 2024

Updated the version and published it to crates.io. Thank you!

https://crates.io/crates/safe_drive/0.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants