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

where is the command roscd

asked 2018-05-17 23:26:32 -0500

bear234 gravatar image

I've installed ROS from source successfully and the command roscd works as expected.

Now I want to execute roscd in a bash script but get the error: roscd: not found

I've tried to find the command roscd but I got nothing: the output of find / -name roscd is empty.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-05-18 00:47:02 -0500

jayess gravatar image

Have you completed the installation instructions? Namely, the environment setup section? From that section

It's convenient if the ROS environment variables are automatically added to your bash session every time a new shell is launched:

echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc

Just make sure to change the kinetic portion to whatever version you installed.

edit flag offensive delete link more

Comments

1

Note: @jayess links to the regular (ie: binary) installation instructions, but environment setup is shared between from-source and binary installations.

gvdhoorn gravatar image gvdhoorn  ( 2018-05-18 01:21:47 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-05-17 23:26:32 -0500

Seen: 410 times

Last updated: May 18 '18