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

Revision history [back]

click to hide/show revision 1
initial version

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

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


Edit:

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

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

Did you use apt to install ROS? As the tutorial you linked instructed you to?

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

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/Installation/Ubuntu

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

Did you use apt to install ROS? As the tutorial you linked instructed you to?

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

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/Installation/Ubuntu

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.