Questions tagged [ament]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 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
41 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
34 views

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

...
Kavinesh S's user avatar
0 votes
1 answer
128 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
0 votes
0 answers
38 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
233 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,492
0 votes
1 answer
14 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
5 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
35 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
7 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
0 votes
1 answer
3 views

Linking library with node in same package

I have the following in my CMakeLists.txt ...
Rufus's user avatar
  • 426
0 votes
1 answer
4 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
1 view

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
34 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
6 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
31 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
18 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
11 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
45 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
10 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
8 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
11 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
  • 321
0 votes
1 answer
1 view

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
35 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
22 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
18 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
5 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
33 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
8 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
70 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
9 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
5 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
2 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
25 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
2 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
3 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
0 votes
2 answers
151 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
7 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
4 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,497
0 votes
1 answer
4 views

Minimal ROS2 Python package

How looks the structure and the content of a plain ROS2 library level package? The intent of the package is to encapsulate functionality implemented in Python which can be imported into other ROS2 ...
user avatar
0 votes
1 answer
14 views

Issues with ament CmakeLists

Hello All, I just started out with ROS 2.0. I have the latest build. I am unsure if I am doing something stupid or missing out something. However, I can’t build these simple files. If I should have ...
user avatar