Ask Your Question
0

[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
/opt/ros/ardent/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# which ament
# echo $?
1
# ament build
bash: ament: command not found
# find / -name ament
# echo $0
bash
# 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
1

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

Comments

You can also checkout the current ros2 dockerfile that builds ros2 from source and concisely installs core build dependencies: https://github.com/osrf/docker_images...

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 375 times

Last updated: Jun 07 '18