serial icon indicating copy to clipboard operation
serial copied to clipboard

ROS2 Support

Open joewong00 opened this issue 2 years ago • 3 comments

I need to use this serial library in my ROS2 package. However, I cannot build and install this package because it has the dependency of catkin. Catkin is not supported by ROS2 now and I could not install it, how do I fix this issue?

I came across another issue mentioning that we can remove the catkin dependency entirely. I tried doing it and it successfully installed. But how do I include the serial in my package? Building my ROS2 package gives the error "could not find a package configuration file provided by "serial" with any of the following names.

joewong00 avatar Jul 24 '23 09:07 joewong00

Check out: https://github.com/RoverRobotics-forks/serial-ros2

clone it into your src folder of your colcon workspace and colcon build. Afterwards, you should be able to find_package(serial REQUIRED) and ament_target_dependencies(target serial) after sourcing the setup.bash of your colcon workspace.

aserbremen avatar Sep 26 '23 15:09 aserbremen

Check out: https://github.com/RoverRobotics-forks/serial-ros2

clone it into your src folder of your colcon workspace and colcon build. Afterwards, you should be able to find_package(serial REQUIRED) and ament_target_dependencies(target serial) after sourcing the setup.bash of your colcon workspace.

Hello, your reply helped me, thanks so much! But unfortunately, when I started my program using this library, i got the following error: image Any ideas please on how to fix this?

jhrncar avatar Feb 18 '24 16:02 jhrncar

A bit late, but this could possibly help (seeing as how it is permission denied) https://answers.ros.org/question/369846/ros2-start-node-with-sudo-rights/

Owhenthesaints avatar Apr 26 '24 23:04 Owhenthesaints