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

roscore can't be found

asked 2020-03-30 20:07:49 -0500

Dean gravatar image

updated 2020-03-31 04:37:14 -0500

gvdhoorn gravatar image

After installation melodic in ubuntu 18.04 for first time,i input "roscore" in ubuntu terminal command port, i see as follows:

Command 'roscore' not found, but can be installed with:
sudo apt install python-roslaunch

Is it right? If it's wrong,how to solve it?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-03-31 02:12:11 -0500

gvdhoorn gravatar image

updated 2020-03-31 04:09:55 -0500

Did you remember to first source /opt/ros/melodic/setup.bash before trying to run roscore?


Edit:

sudo apt install ros-melodic-desktop-full

There isn't roscore in /home/my name/opt/ros/melodic/bin, does it mean i didn't install successfully?

http://wiki.ros.org/cn/melodic/Instal...

I would not expect it to be located in $HOME, but in opt/ros/melodic/bin.

What is the output of ls -al /opt/ros/melodic/bin/roscore? Do not change the path, just run that command.

Assuming you ran ls -al /opt/ros/melodic/bin/roscore and it tells you there is no such file or directory, it would seem for some reason you're missing the roscore binary.

You could try reinstalling it using:

sudo apt install --reinstall ros-melodic-roslaunch

Pay close attention to the output of apt. Perhaps it tells you why it can't / couldn't install the roslaunch package successfully.

edit flag offensive delete link more

Comments

Yes,I did so,but the same errors.

Dean gravatar image Dean  ( 2020-03-31 02:36:18 -0500 )edit

Must I reinstall ROS melodic?

Dean gravatar image Dean  ( 2020-03-31 02:37:30 -0500 )edit

Let's not jump to conclusions.

Please tell us which command exactly you've used to install ROS (and where you found that command).

Then also tell us the output of ls -al /opt/ros/melodic/bin/roscore

gvdhoorn gravatar image gvdhoorn  ( 2020-03-31 02:41:31 -0500 )edit

There isn't roscore in /home/my name/opt/ros/melodic/bin,does it mean i didn't install successfully?

Dean gravatar image Dean  ( 2020-03-31 03:47:09 -0500 )edit

sudo apt install ros-melodic-desktop-full

Dean gravatar image Dean  ( 2020-03-31 03:49:03 -0500 )edit

Why havn't roscore file? I see there is rosrun file.

Dean gravatar image Dean  ( 2020-03-31 03:56:15 -0500 )edit

I'm not going to respond until you tell me the output of ls -al /opt/ros/melodic/bin/roscore.

gvdhoorn gravatar image gvdhoorn  ( 2020-03-31 03:59:34 -0500 )edit

Question Tools

Stats

Asked: 2020-03-30 20:05:53 -0500

Seen: 3,534 times

Last updated: Mar 31 '20