despite sourcing workspace, 'roscore' command not found
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?
Can you open a terminal and execute the command
env | grep ROS
and show us the ouput ?output:
The environment variables look fine to me, but you can't run
roscore
?I can't. command not found
auto-completion suggests me: https://yadi.sk/i/tzHElwIZVytlXg
Indeed that's strange that your autocompletion have
roscd
,rosdep
etc but notroscore
. Have ou reinstalled ros recently ?Moreover what is the ouput of
which roscore
when you open a new terminal ? Same question after you runsource opt/ros/kinetic/setup.bash
?when I open new terminal
which roscore
gives nothingthen I do
source opt/ros/kinetic/setup.bash
andwhich roscore
gives me:and roscore gives me: https://yadi.sk/i/CwNGeQGlHNphdQ
I haven't reinstalled ros.
Any ideas?