Roscore is missing from my fresh melodic install
How do I install roscore for melodic on ubuntu 18.06? the docs are rather useless in regard to the installation packages for just about every tool that the tutorials are wanting me to work with. Can someone lend me a hand and share the apt-get install package name?
I am trying to run rosbag play but I can't get a master server setup for it to work without running roscore. I installed medlic-desktop-full and its not included which is honestly quite odd.
Please advise.
edit: here are the pages i am following: the commands as they appear in the following walkthroughs do not exist in my fresh install of melodic. http://wiki.ros.org/roscore http://wiki.ros.org/rosbag
This:
and:
seems to be contradicting each other (or at least: the latter implies you do have roscore and are starting it to be able to use
rosbag
, while the former suggests you don't have roscore and can't run it).Could you please clarify?
Reason I ask is that I'm pretty sure
roscore
has been installed. There may be a misunderstanding here about what exactly it is and how to start it.And could you also please always link to any tutorials and/or pages that you're reading or trying to follow? Without knowing what you are trying to do it's hard for us to help you.
Here is my timeline: When i ran sudo apt-get install ros-melodic-desktop-full it did not install roscore. nor did it have the rosbag package installed. After spent like three hours figuring out how to install rosbag. It stated it was unable to communicate with master. I had already setup environment variables for IP and host etc. However after reading the docs I realized roscore is the current way to start the master node. I looked for roscore but it was not available in the list of commands and searching for it in the apt repository delivered me no results.
I simply want to know how to install roscore on ubuntu 18.06. trust me it is missing from the commands. I have worked with linux for nearly 13 years and I am 100% sure it is not available to me as a command i can run.
Have you run
source /opt/ros/melodic/setup.bash
before trying to runroscore
?What is the output of
ls -al /opt/ros/melodic/bin/roscore
?And of
dpkg -l | grep ros-melodic-roslaunch
?gvdhoom Yes i have sourced it. please see the attached picture Screenshot of output
That seems to have done it
Please do not post screenshots of terminals, it's all text. Just copy-paste it into your question text. See the Support guidelines.
Do i need to source it every time? it was not always there. i am on two different machines. i can't copy and paste the terminal as its isolated from here.
this is great. I have 15+ years worth of experience with this subject.
It does not prevent me from making the occasional mistake.