port socketcan_interface to ROS2 - #364
Conversation
|
Are you intending this to be a "complete" port for Dashing? If so, we should consider using composable nodes. |
|
This is only the non-ROS part, I might add |
|
What type of testing do we need to do here? |
Hardware tests (or just with vcan) are fine for now :) |
Downstream dependencies don't know that this package depends on several boost components. Linking to socketcan_interface without specifing these components will result in a linking error. This package should correctly export its linking flags. I've followed the answer from the following post to fix this: https://answers.ros.org/question/331089/ament_export_dependenciesboost-not-working/?answer=332460#post-id-332460
|
@Rayman: Did this version work for you? |
|
Yes, I've just re-verified this. It compiles. There are still some tests that fail (uncrustify), but that could also be fixed later. |
ROS crystal seems to have a different uncrustify version.. |
|
Crystal is EOL so I don't see any reason to have the Crystal builds included. |
|
There seems to be a problem with the install command in CMakeLists.txt:
At least for me it throws the following error: Not sure if this is only throws an error for me. Simple fix is:
Tested on Ubuntu 20.04, foxy. |
You could also use |
|
@ipa-mdl Please see mathias-luedtke#6. Testing with |
|
Last month I've run this branch on a robot that has a socketcan interface and it works quite well. It's now driving with with navigation2 stack on top. I think this branch is ready to be merged. |
|
As an alternative for anyone who just needs basic SocketCan functionality on ROS2, check out https://github.com/autowarefoundation/ros2_socketcan. |
|
I think this branch is now ready for merge. Only the crystal CI is failing because the linter behaves differently. But crystal is not supported so it doesn't matter. |
|
What's the status of this PR? I also ran this on an actual robot (in Foxy even) and it worked perfectly. It would be great if this could be merged and give some functionality to ros_canopen in ROS 2 |
|
ping. Can someone merge this? |
|
Just wanted to mention, we have started an effort to create ros2_canopen. An alpha with service interface (no ros2_control) is planned in the next weeks. ros2_control integration will come soon. Architecture has been restructured and lely_core's canopen stack was integrated. There is no direct can/ros bridge any more, only canopen. Code is here: https://github.com/ros-industrial/ros2_canopen |
mostly based on #359
ToDo: