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

[docker] ament: command not found

asked 2018-06-07 04:13:46 -0500

kunaltyagi gravatar image

updated 2018-06-10 20:36:43 -0500

I tried to use the ros2 docker image and could not find the ament executable. What am I doing wrong?

$ docker run --rm -it osrf/ros2:ardent-basic bash
# echo $PATH
# which ament
# echo $?
# ament build
bash: ament: command not found
# find / -name ament
# echo $0
# source /opt/ros/ardent/setup.bash
# # same results with the commands above. No sense in repeating
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-06-07 15:34:57 -0500

marguedas gravatar image

You are doing nothing wrong, the developper tools are not installed in the docker images only the libraries and demo executables (similar to the ROS1 docker images).

If you want to compile code I recommend you to install ros-ardent-ament* that will install ament_tools (providing the ament executable) as well as various ament packages providing utilities for testing.

If you plan on developing ROS2 code, I recommend you to also install all the building dependencies (build-essential, setuptools etc) that are listed in the Install GCC, G++ CMake, Python 3 EmPy package [...] section of the installation page.

Hope this helps

edit flag offensive delete link more


You can also checkout the current ros2 dockerfile that builds ros2 from source and concisely installs core build dependencies:

ruffsl gravatar image ruffsl  ( 2018-06-19 13:44:52 -0500 )edit

Question Tools

1 follower


Asked: 2018-06-07 04:13:46 -0500

Seen: 1,956 times

Last updated: Jun 07 '18