I am getting an error using Ros2 Iron and micro-ROS on RP2040

asked 2023-07-26 22:03:41 -0500

ThaneF gravatar image

Hi.

I am trying to learn ROS2 and micro-ROS and I am following tutorial that can be found at https://robofoundry.medium.com/raspbe...

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 | set_verbose_level | logger setup | verbose_level: 4 [1690425002.618096] info | Root.cpp | create_client | create | client_key: 0x6B640A06, session_id: 0x81 [1690425002.618200] info | SessionManager.hpp | establish_session | session established | client_key: 0x6B640A06, address: 0 [1690425002.669919] info | ProxyClient.cpp | create_participant | participant created | client_key: 0x6B640A06, participant_id: 0x000(1) [1690425002.673867] info | ProxyClient.cpp | create_topic | topic created | client_key: 0x6B640A06, topic_id: 0x000(2), participant_id: 0x000(1) [1690425002.675945] info | ProxyClient.cpp | create_publisher | publisher created | client_key: 0x6B640A06, publisher_id: 0x000(3), participant_id: 0x000(1) [1690425002.678391] info | ProxyClient.cpp | create_datawriter | datawriter created | client_key: 0x6B640A06, datawriter_id: 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

edit retag flag offensive close merge delete