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.