ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Micro-Ros: Package 'micro_ros_agent' not found

asked 2021-07-13 03:33:51 -0600

irsyadtc gravatar image

I am trying to install micro-ROS through the steps provided in this link: https://micro.ros.org/docs/tutorials/core/first_application_linux/ However, when I tried to run Micro-ROS Agent node

ros2 run micro_ros_agent micro_ros_agent udp4 --port 8888

it gives:

Package 'micro_ros_agent' not found

I believe that the command line (below) supposed to create micro_ros_agent package

ros2 run micro_ros_setup create_agent_ws.sh

but since I have run it previously, it replied:

Repo-file ros2.repos already present, overwriting! ....

=== ./eProsima/Micro-XRCE-DDS-Agent (git) ===

Already on 'foxy' Your branch is behind 'origin/foxy' by 1 commit, and can be fast-forwarded. (use "git pull" to update your local branch)

=== ./uros/drive_base (git) ===

Already on 'master' Your branch is up to date with 'origin/master'.

=== ./uros/micro-ROS-Agent (git) ===

Already on 'foxy' Your branch is up to date with 'origin/foxy'.

=== ./uros/micro_ros_msgs (git) ===

Already on 'foxy' Your branch is up to date with 'origin/foxy'.

All required rosdeps installed successfully

Could any one point out where is micro_ros_agent package located?

Note:

Workspace microros_ws is overlay from workspace ros2_foxy.

PC details:

OS: Ubuntu 20

ROS Distro: ROS2 Foxy

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-07-13 04:13:12 -0600

Pablogs gravatar image

Make sure that you do:

ros2 run micro_ros_setup create_agent_ws.sh

ros2 run micro_ros_setup build_agent.sh

source install/local_setup.bash

before trying to run the micro-ROS agent.

edit flag offensive delete link more

Comments

Thanks @Pablogs, I somehow missed out "ros2 run micro_ros_setup build_agent.sh"

irsyadtc gravatar image irsyadtc  ( 2021-07-13 04:35:25 -0600 )edit

@irsyadtc if this is correct, please check the checkmark next to the answer. Thanks.

mgruhler gravatar image mgruhler  ( 2021-07-13 04:52:30 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2021-07-13 03:33:51 -0600

Seen: 1,959 times

Last updated: Jul 13 '21