I am getting an error using Ros2 Iron and micro-ROS on RP2040
Hi.
I am trying to learn ROS2 and micro-ROS and I am following tutorial that can be found at https://robofoundry.medium.com/raspberry-pi-pico-ros2-via-micro-ros-actually-working-in-1-hr-9f7a3782d3e3
Titled : Raspberry Pi Pico — ROS2 via micro-ROS actually working in < 1 hr by RoboFoundry
My environment: ROS2 Iron on Ubuntu 22.04 running on a Dell Optiplex 3040 and the Cytron Maker Pi RP204 board connected via USB.
I followed the first 6 steps and all went well. No issues.
However, in Step 7 - Start the micro-ROS example application on Pico,
running this command: sudo micro-ros-agent serial --dev /dev/ttyACM0 baudrate=115200
produces this result :
[1690425002.256392] info | TermiosAgentLinux.cpp | init | running... | fd: 3 [1690425002.256677] info | Root.cpp | setverboselevel | logger setup | verboselevel: 4 [1690425002.618096] info | Root.cpp | createclient | create | clientkey: 0x6B640A06, sessionid: 0x81 [1690425002.618200] info | SessionManager.hpp | establishsession | session established | clientkey: 0x6B640A06, address: 0 [1690425002.669919] info | ProxyClient.cpp | createparticipant | participant created | clientkey: 0x6B640A06, participantid: 0x000(1) [1690425002.673867] info | ProxyClient.cpp | createtopic | topic created | clientkey: 0x6B640A06, topicid: 0x000(2), participantid: 0x000(1) [1690425002.675945] info | ProxyClient.cpp | createpublisher | publisher created | clientkey: 0x6B640A06, publisherid: 0x000(3), participantid: 0x000(1) [1690425002.678391] info | ProxyClient.cpp | createdatawriter | datawriter created | clientkey: 0x6B640A06, datawriterid: 0x000(5), publisher_id: 0x000(3)
which is correct and as expected, however, when I run this command : ros2 topic list
I get this error message:
terminate called after throwing an instance of 'eprosima::fastcdr::exception::NotEnoughMemoryException' what(): Not enough memory in the buffer stream Aborted
If you have a solution and or a work around that you could suggest?
Thanking you in advance, Thane
Asked by ThaneF on 2023-07-26 22:03:41 UTC
Comments