ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ROS2 not detecting micro-ROS service

asked 2023-05-17 13:20:11 -0500

alrit gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-18 00:28:31 -0500

Pablogs gravatar image

Hey could you open an issue in the Github repo you are using so we can track this?

edit flag offensive delete link more

Comments

Opened an issue in the micro_ros_arduino Github repository. Link to the issue here: https://github.com/micro-ROS/micro_ro...

alrit gravatar image alrit  ( 2023-05-18 06:46:18 -0500 )edit

Question Tools

Stats

Asked: 2023-05-17 13:20:11 -0500

Seen: 297 times

Last updated: May 18 '23