Closed spartacoos closed 3 years ago
Hello @spartacoos, Which branch are you using for the Micro-XRCE agent?
The snap agent version needs to be updated to fix this problem, could you try with the dockerized version?
docker run -it --rm --net=host -v /dev:/dev -v /dev/shm:/dev/shm --privileged microros/micro-ros-agent:foxy serial --dev /dev/ttyACM0 -v6
Hi @Acuadros95, I just tried with your approach and this makes it so that on the agent side there are no dds errors. However, the listener still can't receive the messages. Oddly enough, If I run ros2 node list
I get an empty output. If I run ros2 topic list
I only get "
/parameter_events
/rosout
but if I try to publish to it by running ros2 topic pub /mbed_int32_publisher std_msgs/msg/Int32 "data: 1"
this works and the listener publishes I heard "1". Any idea what the issue could be here? It seems to me like the listener and publisher are not being discovered.
Also, if I try to run ros2 topic pub /mbed_int32_publisher std_msgs/msg/Int32 "data: 1"
while the agent is running this makes it so that the listener doesn't output anything. If I try when the agent is not running then it works.
I can't replicate that issue on my computer, looks like a communication problem with the dockerized agent.
You can also try to recompile the agent, making sure you are using the latest version and then running it like on your first post: sudo ./MicroXRCEAgent serial --dev /dev/ttyACM0 -v6
Just make sure you build the latest commit from the foxy branch.
Fantastic! Thank you @Acuadros95, that seems to have worked!
Agent produces DDS error + mbed board does not appear in node list
Steps to reproduce the issue
1.Install ROS2 on your system (Ubuntu 20.04) by following these steps.
sudo ./MicroXRCEAgent serial --dev /dev/ttyACM0 -v6
Actual behavior
DDS error:
Expected behavior
From the Portenta example By simply using the portenta instead and changing the topic name to "micro_ros_arduino_node_publisher" on the listener script we get the correct output on the top right terminal:
Additional information
I tried with both the Micro-XRCE agent (as seen above) and with the micro-ros-agent used as seen here but with "snapd:st-linkv21" instead of "snapd:pico.