Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

micro_ros_agent installation issue on ROS 2 Humble Ubuntu 22.04 #764

Open
TannerGilbert opened this issue Jan 13, 2025 · 7 comments
Open

Comments

@TannerGilbert
Copy link

Issue template

  • Hardware description: PC, Ubuntu 22.04
  • RTOS: Ardupilot SITL
  • Installation type: micro_ros_setup
  • Version or commit hash: humble

Steps to reproduce the issue

Follow First micro-ROS Application on Linux. When creating and building the micro-ROS agent

ros2 run micro_ros_setup create_agent_ws.sh
ros2 run micro_ros_setup build_agent.sh

I run into the following error:

stderr: micro_ros_agent
CMake Error at /opt/ros/humble/share/fastrtps/cmake/fastrtps-dynamic-targets.cmake:37 (message):
Some (but not all) targets in this export set were already defined.

Targets Defined: eProsima_atomic

Targets not yet defined: fastrtps

Call Stack (most recent call first):
/opt/ros/humble/share/fastrtps/cmake/fastrtps-config.cmake:60 (include)
CMakeLists.txt:37 (find_package)

Expected behavior

micro-ROS agent installation works as expected and I can use it for working with Ardupilot.

Actual behavior

stderr: micro_ros_agent
CMake Error at /opt/ros/humble/share/fastrtps/cmake/fastrtps-dynamic-targets.cmake:37 (message):
Some (but not all) targets in this export set were already defined.

Targets Defined: eProsima_atomic

Targets not yet defined: fastrtps

Call Stack (most recent call first):
/opt/ros/humble/share/fastrtps/cmake/fastrtps-config.cmake:60 (include)
CMakeLists.txt:37 (find_package)

Additional information

Installing Fast-DDS from source didn't fix the issue for me either

@seifseghiri
Copy link

Hi Tanner,
Any solution yet for fixing this?
Thanks in advance.

@starrtriaxle82
Copy link

Did you figure out this issue? I'm experiencing the same error.

Targets Defined: eProsima_atomic

Targets not yet defined: fastrtps

@TannerGilbert
Copy link
Author

No I haven't found a solution to this yet.

@Ericc99
Copy link

Ericc99 commented Feb 13, 2025

I got the same problem as well ... hope someone can figure it out soon ...
Before that, may i suggest you use a docker image instead with the following command

sudo docker run -it --rm --net=host microros/micro-ros-agent:humble udp4 --port 8888 -v6

this works for me at the moment.

but watch out for your ufw status, or else all connection requests will be blocked lol.

@Ryanf55
Copy link

Ryanf55 commented Feb 13, 2025

Using net=host and port 8888 is redundant, net=host opens everything.
ufw is not installed by default on ubuntu.
The errors explained are during configuration, not runtime, so I don't think the networking tips you have are related at all to the problems this ticket was created for.

@p8410077
Copy link

@TannerGilbert did you resolve the problem ? I ran into the same issue.

@TannerGilbert
Copy link
Author

No unfortunately I didn't solve this yet. The error only occurs on one of my devices though so currently I just run on a different one. The solution proposed by @Ericc99 should probably also solve the issue but I haven't tested it myself yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants