File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -10,5 +10,7 @@ Rosserial client for rp2040 usage
1010- Execute the command 'rosrun rosserial_rp2040 make_libraries.py' to generate the ros_lib library files in the pico-sdk library folder
1111- To generate the ros_lib library files in a custom location use 'rosrun rosserial_rp2040 make_libraries.py <custom location>'
1212
13+ To use the rp2040 USB serial connection for ros, use NodeHandleUSB instead of NodeHandle.
14+
1315The rosserial functionality can now be accessed from the project as described in the rosserial tutorials.
1416
Original file line number Diff line number Diff line change 1111
1212namespace ros
1313{
14- #ifdef USE_USBCON
15- typedef ros::NodeHandle_<RP2040_Hardware_USB> NodeHandle;
16- #else
14+ typedef ros::NodeHandle_<RP2040_Hardware_USB> NodeHandleUSB;
1715 typedef ros::NodeHandle_<RP2040_Hardware> NodeHandle;
18- #endif
1916}
2017
21- #endif
18+ #endif
You can’t perform that action at this time.
0 commit comments