Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [ament]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
32 views

ModuleNotFoundError: No module named 'ament_package' in ROS2 Humble Windows

I'm trying to (colcon) build a new C++ package with a binary ROS2 Humble installation in Windows from a Visual Studio 2022 Developer Command Prompt, but each time I run "colcon build" in my ...
Eric Eggers's user avatar
1 vote
0 answers
23 views

How can I build ROS 2 as a variant?

According to REP 2001, ROS 2 comes in 6 variants. ROS Core ROS Base Desktop Perception Simulation Desktop Full Additionally, there are 2 variants for development, referred to as ROS infrastructure. ...
Blacklight MG's user avatar
0 votes
0 answers
15 views

Ament Cmake doesnt extend LD_LIBRARY_PATH

Im using a precompiled version of pytorch in my Ros2 Humble Project. Initially add the library folder to the CMAKE_PREFIX_PATH via ...
Marc HPunkt's user avatar
0 votes
0 answers
14 views

find_package() of exported dependencies builds with --merge-install but not isolated

Running ubunut 22.04, ros humble from binaries. I have written 3 packages. Two containing libraries and the third an executable. I have split the libraries just because they were semantically ...
Nyquist's user avatar
  • 204
1 vote
1 answer
21 views

No Python executables after colcon build (ament_cmake_python)

So I'm trying to create a ROS Humble Python pkg, but after running colcon build --symlink-install and source install/setup.bash ...
mink4sure's user avatar
0 votes
1 answer
62 views

_launch.py was not found in the share directory of package

This question is almost similar to the other one which has the same issue of _launch.py was not found in the share package. What differs is i created the package ...
Vasanth's user avatar
  • 17
1 vote
2 answers
61 views

How to use ament_lint_common's ament_copyright on a "BSD" licensed-package such as geographic_info

Problem Description I have a code contribution to the geographic_info package. That package says the license in the package.xml is "BSD". That is not a ...
Ryan Friedman's user avatar
2 votes
1 answer
135 views

ROS 2 cross-compile cannot handle custom dependency

Issue Reproduction Hello, I am currently working on cross-compiling ROS 2 from x86 to ARM. In my project, I have overwritten some of the built-in ROS 2 packages and also created some custom basic ...
aezakmi's user avatar
  • 21
0 votes
0 answers
24 views

Error when running RCLCPP examples on microROS workspace with rmw_microxrcedds

I am trying to build rclcpp publisher subscriber example on microROS (host workspace on ubuntu:jammy). I am able to compile it (with -DRMW_IMPLEMENTATION=rmw_microxrcedds) and run it for cyclonedds ...
Ace_Dalman's user avatar
0 votes
0 answers
87 views

ModuleNotFoundError while compiling ROS 2 beginner package

I'm attempting to build a ROS 2 package named my_robot_interfaces using the colcon build tool. However, I'm encountering the error message ...
Hrishikesh k's user avatar
0 votes
0 answers
21 views

ros2 using cpp ament package library in another cpp ament package

i'm trying to transform ego-planner-swarm founded in: https://github.com/ZJU-FAST-Lab/ego-planner-swarm to ros2... in my ros2 workspace, i have 3 packages... bspline_opt(as library) plan_manage ...
arash mokhtari sherkat's user avatar
0 votes
0 answers
71 views

Build error when using ament_python ROS 2 package

After adding following line to the setup.py: ...
Filip Zorić's user avatar
1 vote
1 answer
190 views

Find all dependencies of a ROS 2 workspace for a source build

I have a project where I use a proprietary library to exchange data with a PLC, therefore I have to use debian as operating system. As a consequence, I have to build the ROS distro from source. ...
Christoph Froehlich's user avatar
0 votes
1 answer
69 views

Launching Gazebo simulation and using nav2 for path planning, using ros2

...
Kavinesh S's user avatar
0 votes
1 answer
426 views

Error building ROS2 Humble empty python package - Cython

I'm trying to build a simple empty Python package on ROS Humble. I created the package using: ros2 pkg create test_py --build-type ament_python Then, I built it ...
Matheus Sousa's user avatar
1 vote
1 answer
105 views

How to run (Google) benchmarks in ROS2

There exists an ament_cmake_google_benchmark package that can help building Google Benchmark tests within ROS2, but I can't find a way to invoke those benchmarks from the command line, e.g. with ...
marioprats's user avatar
0 votes
1 answer
429 views

ament_target_dependencies not linking an upstream ament package?

Background Upstream pkg (called rclcpp_sample) provides a library-a. Downstream pkg (called rclcpp_child_sample) provides an executable that depends on library-a. Both are ...
IsaacS's user avatar
  • 4,502
0 votes
1 answer
67 views

colcon build doesn't generate executables

I am trying to get started with ROS2 Humble and when running colcon build no executable files are created. My project structure looks like this: ...
user avatar
0 votes
1 answer
20 views

unexpected keyword argument 'package' from launch_testing

I am trying to use launch_testing to create integration tests for my ROS2 node. However, I keep getting the following error: ...
user avatar
0 votes
1 answer
129 views

ROS2 Foxy composable node: Failed to load component due to undefined symbol

Dear all, I am developing a composable ROS 2 lifecycle node. The node uses another external library in order to execute EtherCAT Master functionalities. I have followed the composition tutorial page: ...
user avatar
0 votes
1 answer
16 views

Catkin seems to be unavailable for Ros2 Foxy

All of the details are right there in the title. I can't seem to get packages without Catkin, ament is included with Foxy but doesn't seem to work with colcon. Another way around this would be how to ...
user avatar
1 vote
1 answer
34 views

Linking library with node in same package

I have the following in my CMakeLists.txt ...
Rufus's user avatar
  • 486
0 votes
1 answer
8 views

Role of Ament in ROS 2 package creation

In the Creating Your First ROS2 Package tutorial, the command to create a new Python package is: ros2 pkg create --build-type ament_python my_package I'm confused ...
user avatar
0 votes
1 answer
13 views

ROS2 Windows can't add dependency, fatal error LNK1107: invalid or corrupt file

I am trying to use the ctre phoenix c++ library. This worked fine when using catkin in Ubuntu, but I recently made the switch to ROS2 and am developing in windows, and now I get this error: ...
user avatar
0 votes
1 answer
110 views

[ROS2] Including a cpp header from another package

Dear fellow developers: I am a beginner in ROS2. I have designed a library that I want all packages in ROS2 to have access. This is the warning I get when I try to build. This is causing an error. <...
user avatar
0 votes
1 answer
76 views

Ament Cmake: How to add interface files generated from build step to library

I am working on implementing a client library from swift, utilizing CMake's swift support, and I'm running into issues with interface files. Unlike C/C++, swift interfaces are not declared in source ...
user avatar
0 votes
1 answer
57 views

Colcon Build Error with ROS2 Eloquent and Libtorch

Hello. I am trying to build my package with colcon and it has stoped building correctly over the past day and I am not sure why. I have attached the error that colcon emits below. Reading through it ...
user avatar
0 votes
2 answers
57 views

How to configure ament python linters in CMakeLists?

I have a ROS2 Eloquent C++ package with some python files (for example, python launch scripts) which I would like to lint. I have the linters included in the packages.xml ...
user avatar
0 votes
1 answer
18 views

ament_cmake_python job

I know that ament_python is for building packages using python's setup.py and (for now) users can not mix ...
user avatar
0 votes
1 answer
158 views

ament_cmake vs ament_python?

I just started learning ros2 and I want to create a new package, and I noticed that it is possible to create a package with 2 different build types, ament_cmake and ament_python. However, I didn't ...
user avatar
0 votes
1 answer
104 views

[ROS2] rclcpp linking error and correct way to handle dependencies

Hi, I'm trying to migrate my ROS 1 libraries to ROS 2 and have some trouble with setting up the packages. I read the ament CMake documentation and this thread, but I'm still not sure what the ...
user avatar
0 votes
1 answer
73 views

yaml-cpp in ROS2 linking errors

Hi everybody, Following problem occurred: I'm trying to use yaml-cpp in a ROS2 package and it returns loads of linking errors ("undefined reference to ...") I have linked yaml-cpp to the ...
user avatar
0 votes
1 answer
33 views

Packaging protobuf files using ament_cmake for ROS2

I'm trying to create an ament package for some protobuf files. Currently I have the cmake in my protobuf related package invoking protoc to generate the C++ and header files. However I feel like I'm ...
ruffsl's user avatar
  • 331
0 votes
1 answer
14 views

Ament/Colcon: Share variable between package CMakeLists

I want to share a filepath variable between the CMakeLists of two packages. When I set in the first CMakeLists a variable using ...
user avatar
0 votes
1 answer
127 views

How to cleanly handle dependencies in ament?

If I build a library to be used by other ROS 2 developers, what is the way to make it easy to use for downstream packages? In modern CMake one answer should be exporting targets. This would then allow ...
user avatar
0 votes
1 answer
165 views

Unable to include header files from another package

I am trying to create a library package which also includes header files to include from another package, but the other package is not able to find them. The CMakelist.txt from the library package ...
user avatar
0 votes
1 answer
55 views

AMENT versus COLCON Ignore files

Hello! I was wondering if AMENT_IGNORE files are still being used. I saw there are still some of them in some packages, like RTI Connext https://github.com/ros2/rmw_connext/blob/master/...
user avatar
0 votes
1 answer
6 views

Difference in build between ament build and ament build --symlink install

Hi, I have an overlay workspace. Once I built it with ament build and ran the corresponding node, it worked fine. Then I removed the build and install directory and ...
user avatar
0 votes
1 answer
95 views

How to understand the result of the "ros2 topic info /camera/color/image_raw" is 0

When I launch realsense_ros2_camera ,I use ros2 topic info /camera/color/image_raw to print information about the /camera/color/...
user avatar
0 votes
1 answer
25 views

What is colcon build?

I am trying to install ROS2 on windows and suddenly I see the build system has changed from ament build to colcon build. Is this ...
user avatar
1 vote
2 answers
296 views

What is the difference between local_setup.bash and setup.bash

In ROS2, we always source the local_setup.bash while working with the original parent workspace. Now lets say if i create an overlay workspace and create my own ...
user avatar
0 votes
1 answer
26 views

How to use ament_ignore

Lets say in my src directory I have 5 packages wherein I dont want to build one...How can i use ament_ignore ? ament build --symlink-install --AMENT_IGNORE package5 ...
user avatar
0 votes
1 answer
21 views

How to achieve launch service or topic in ROS2 TEST?

Hi All, I'm writing TEST for the company ROS2's project.I learned to launch service or topic via the .test file in ROS,but there is no .test file in ROS2 TEST.I don't know what kind of mechanism can ...
user avatar
0 votes
1 answer
7 views

Identify dependencies when group_depend is involved

I'm trying to navigate the tree of dependencies of some packages in ROS2 but I'm hitting a possible bug. For normal build_depend and buildtool_depend I can use ament list_dependencies or inspect the ...
user avatar
0 votes
1 answer
43 views

CMake error in ROS2

I am trying to create a ROS2 package from scratch, named testpackagecpp and have this CMakeLists.txt : ...
user avatar
0 votes
1 answer
4 views

Specifying package build order with Ament

Is there a way to make Ament build packages in a specific order? I have a package set up similar to how the Common Interfaces package is set up in Ardent (like a metapackage) and the packages get ...
user avatar
0 votes
1 answer
6 views

Unable to start the talker node even after sourcing the local_setup.bash file

I installed ROS2 from the following link Linux Development Setup Even after sourcing the local_setup.bash file i am unable to run ros2 run demo_nodes_cpp talker It says, ros2 : command not found. As ...
user avatar
1 vote
2 answers
415 views

[ros2] ros2 run [package] [executable] cannot find executable

I have a C++ project which consists of a number of packages that I'm migrating from ROS1 to ROS2; under ROS1 with catkin, I could build the project with catkin_make ...
user avatar
0 votes
1 answer
12 views

can ament package depend on catkin package

Is there any clean way of having an ament package depend on a catkin package if, say, their workspaces are different but maybe the ament workspace is an overlay on the catkin workspace? The main ...
user avatar
0 votes
1 answer
6 views

ROS2 ament overlay issue with messages

I'm working on adding array parameter support for ROS2, and am having trouble with ament. I've added new types and values here and here. I then sourced ...
automatom's user avatar
  • 5,582