micro-ROS / micro_ros_zephyr_module

micro-ROS Zephyr module and sample code
Apache License 2.0
46 stars 22 forks source link

Cannot create more than 2 services #118

Closed rcolatobe closed 1 year ago

rcolatobe commented 1 year ago

Issue template

Steps to reproduce the issue

image Using the above configuration, I am trying to create and use 4 services that use trigger std messages. All 4 services have been added to the executor, but for the last 2 services rclc_service_init_best_effort returns RCL_RET_ERROR.

Expected behavior

Using the CLI on a computer connected to the ROS network ros2 service call [tab autocomplete] displays 4 services. Also service call CLI commands do not get a response.

Actual behavior

Using the CLI on a computer connected to the ROS network ros2 service call [tab autocomplete] displays 2 services. Also service call CLI commands do get a response.

Additional information

pablogs9 commented 1 year ago

Can you paste here the output of the micro-ROS Agent with flag -v6 please?

pablogs9 commented 1 year ago

An idea:

I'm not sure what happens when you build the library, then modify the param, and the rebuild the app. So, have you tried to clean the library and configure your number of servers? Maybe starting with a clean micro-ROS environment with no generated library?

rcolatobe commented 1 year ago

Deleting the zephyr module and pulling it again to refresh did fix the issue.

Is there a way to clean build the micro_ros_zephyr_module so that I don't delete the entire folder?

pablogs9 commented 1 year ago

No, I guess that there is not a cleaner way. If you find some way, please consider opening a PR.

I'm closing as resolved.