ROS2 not detecting micro-ROS service
Hi all!
I'm new to ROS2 and micro-ROS and currently going through micro-ROS tutorials trying to learn the basics of how to implement ROS2 publishers, subscribers and service servers/clients on microcontrollers.
I've managed to create publishers and subscribers that communicate with other ROS2 objects via micro-ROS agent. I used the micro-ros_publisher and micro-ros_subscriber examples from micro_ros_arduino github. Link to examples here: https://github.com/micro-ROS/micro_ro...
However, when trying out the micro-ros_addtwoints_service example code, ROS2 running on my main computer does not detect any services. The example code compiles and uploads to the microcontroller, connection to the micro-ROS agent is made, but command ros2 service list
gives empty output, even though service "/addtwoints" should be created in the example code. The node "add_twoints_client_rclc" created in the example code, however, is created and command ros2 node list
gives output /add_twoints_client_rclc
. Any ideas what am I missing, why there is no service created?
Link to the example micro-ros_addtwoints_service example code: https://github.com/micro-ROS/micro_ro...
I'm using ROS2 Humble on Ubuntu 22.04, with kernel 5.19.0-38.
My microcontroller is Arduino Nano RP2040 Connect.
I installed ROS2 following this installation guide on ROS2 website https://docs.ros.org/en/humble/Instal...
and micro-ROS agent following this guide on micro-ROS website https://micro.ros.org/docs/tutorials/...
I'm happy to provide any extra information if I'm missing something in the description.