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

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

Comments

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

output:

ROS_ROOT=/opt/ros/kinetic/share/ros
ROS_PACKAGE_PATH=/home/nvidia/catkin_ws/src:/opt/ros/kinetic/share
ROS_MASTER_URI=http://10.42.0.243:11311
ROS_VERSION=1
ROS_HOSTNAME=JETSON_HOSTNAME
ROSLISP_PACKAGE_DIRECTORIES=/home/nvidia/catkin_ws/devel/share/common-lisp
ROS_DISTRO=kinetic
ROS_IP=10.42.0.243
ROS_ETC_DIR=/opt/ros/kinetic/etc/ros
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: https://yadi.sk/i/tzHElwIZVytlXg

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:

/opt/ros/kinetic/bin/roscore

and roscore gives me: https://yadi.sk/i/CwNGeQGlHNphdQ

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
0

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

Stats

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

Seen: 1,368 times

Last updated: Nov 12 '19