-
Notifications
You must be signed in to change notification settings - Fork 135
Description
Topics do not publish any data
Hi all,
I am trying to get the micro_ros_publisher example to work, but I am encountering two issues:
- When setting up the agent (ros2 run micro_ros_agent micro_ros_agent serial --dev /dev/ttyACM0), the process often doesn't get past the "create_topic" or "create_publisher" stage. The output differs each time I try setting up the agent.
- When it successfully creates a datawriter ("datawriter created") the topic name shows up with ros2 topic list (/micro_ros_arduino_node_publisher) but when I try to view it (using ros2 topic echo) it doesn't give me any output.
Steps to reproduce the issue
I have a Raspberry Pi 4 connected to a Teensy 4.0 board using a USB cable. Regarding software, I'm using the following versions:
• Ubuntu 22.04 + ROS2 Humble
• Arduino IDE 2.3.6
• Teensyduino 1.57.3
I've installed micro-ros on my RPi following the official instructions (https://micro.ros.org/docs/tutorials/core/first_application_linux/). The teensy is included in my Arduino IDE with the precompiled v2.0.8-humble micro-ros release. I have also applied the teensy patch to ensure compatibility.
Actual behaviour
The image below shows the output of some commands within the ros 2 workspace.
Expected behaviour
The arduino script should continuously output integers in ascending order.
Some help would be greatly appreciated!