Skip to content

Micro-ROS topic discovery issue #10

@antonTan96

Description

@antonTan96

To translate micro-ROS topics to be seen by the ROS2 environment we need to initialize a micro-ros agent by running the following command:

sudo docker run -it --rm -v /dev:/dev -v /dev/shm:/dev/shm --privileged --net=host microros/micro-ros-agent:jazzy serial --dev [your USB port] -v4

You should get the following output:

Image

Press the reset button on the ESP32 to get the following:

Image

This indicates that a connection has been established and there exists micro-ROS topics in the ROS2 environment space.

By default, these topics are visible only in ROS_DOMAIN_ID=0 and ROS_LOCALHOST_ONLY should not be initialized.

Run:

ros2 topic list

If you still do not see your topics, Run:

ros2 daemon stop ; ros2 daemon start

Hopefully the micro-ROS topics will appear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions