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

despite sourcing workspace, 'roscore' command not found

asked 2019-11-12 04:38:03 -0600

june2473 gravatar image

updated 2019-11-12 06:32:10 -0600

gvdhoorn gravatar image

I used to open terminal and be able to do ros commands such as roscore, rostopic, rosrun, roslaunch and catkin_make.

But now, something become broken, and I need to do source ~/catkin_ws/devel/setup.bash everytime when I open terminal. I dont know why.

I have checked .bashrc file. source /opt/ros/kinetic/setup.bash and source ~/catkin_ws/devel/setup.bash is there. Can you help me?

edit retag flag offensive close merge delete


Can you open a terminal and execute the command env | grep ROS and show us the ouput ?

Delb gravatar image Delb  ( 2019-11-12 04:52:01 -0600 )edit


june2473 gravatar image june2473  ( 2019-11-12 04:53:37 -0600 )edit

The environment variables look fine to me, but you can't run roscore ?

Delb gravatar image Delb  ( 2019-11-12 04:55:37 -0600 )edit

I can't. command not found

june2473 gravatar image june2473  ( 2019-11-12 04:57:34 -0600 )edit

auto-completion suggests me:

june2473 gravatar image june2473  ( 2019-11-12 05:03:03 -0600 )edit

Indeed that's strange that your autocompletion have roscd, rosdep etc but not roscore. Have ou reinstalled ros recently ?

Moreover what is the ouput of which roscore when you open a new terminal ? Same question after you run source opt/ros/kinetic/setup.bash ?

Delb gravatar image Delb  ( 2019-11-12 05:08:48 -0600 )edit

when I open new terminal which roscore gives nothing

then I do source opt/ros/kinetic/setup.bash and which roscore gives me:


and roscore gives me:

june2473 gravatar image june2473  ( 2019-11-12 05:19:27 -0600 )edit

I haven't reinstalled ros.

Any ideas?

june2473 gravatar image june2473  ( 2019-11-12 05:43:40 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-11-12 05:57:25 -0600

june2473 gravatar image

my .bashrc was containing some crap. that was the problem. nothing interesting. problem solved.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-11-12 04:38:03 -0600

Seen: 1,102 times

Last updated: Nov 12 '19