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-rospublisher and micro-rossubscriber examples from microrosarduino github. Link to examples here: https://github.com/micro-ROS/micro_ros_arduino/tree/humble/examples
However, when trying out the micro-rosaddtwointsservice 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 "addtwointsclientrclc" created in the example code, however, is created and command ros2 node list
gives output `/addtwointsclientrclc`. Any ideas what am I missing, why there is no service created?
Link to the example micro-rosaddtwointsservice example code: https://github.com/micro-ROS/micro_ros_arduino/blob/humble/examples/micro-ros_addtwoints_service/micro-ros_addtwoints_service.ino
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/Installation/Ubuntu-Install-Debians.html
and micro-ROS agent following this guide on micro-ROS website https://micro.ros.org/docs/tutorials/core/first_application_linux/
I'm happy to provide any extra information if I'm missing something in the description.
Asked by alrit on 2023-05-17 13:20:11 UTC
Answers
Hey could you open an issue in the Github repo you are using so we can track this?
Asked by Pablogs on 2023-05-18 00:28:31 UTC
Comments
Opened an issue in the micro_ros_arduino Github repository. Link to the issue here: https://github.com/micro-ROS/micro_ros_arduino/issues/1392
Asked by alrit on 2023-05-18 06:46:18 UTC
Comments