How do I get roscd, rostopic, roscore, rosrun and etc?
I'm trying to follow the starter guide on ROS Wiki by installin ros distro kinetic (I need this one because the projects that I'm working on need to work on Ubuntu Xenial). Here's my dockerfile:
FROM ubuntu:xenial
RUN apt-get update && apt-get install -y cmake build-essential lsb-core unzip
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y cmake git build-essential libboost-all-dev libpcl-dev libproj-dev libvtk6-dev libusb-1.0-0.dev
RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'\
&& apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654\
&& apt-get update && apt-get install -y python-rosdep \
&& rosdep init && rosdep update
ENV LD_LIBRARY_PATH="/opt/ros/kinetic/lib/:${LD_LIBRARY_PATH}"
ENV PATH="/usr/local/lib/quanergy_client_ros/:${PATH}"
ENV ROS_ROOT="/opt/ros/kinetic/share/ros"
ENV ROS_PACKAGE_PATH="/opt/ros/kinetic/share"
ENV ROS_MASTER_URI="http://localhost:11311"
ENV ROS_PYTHON_VERSION=2
ENV ROS_VERSION=1
ENV ROS_DISTRO="kinetic"
ENV ROS_ETC_DIR="/opt/ros/kinetic/etc/ros"
The problem is that I don't get any of the tools mentioned in the tutorials like roscd
, rostopic
, roscore
, rosrun
, etc. I only have these:
rosdep rosdistro_build_cache rosdistro_migrate_to_rep_141 rosdistro_reformat
rosdep-source rosdistro_freeze_source rosdistro_migrate_to_rep_143 rosversion
what am I doing wrong?
Can you provide a link for the instructions.you are following - your command ‘ apt-get install -y python-rosdep’ is only asking for rosdep to be installed.
Did you find a solution? I just noticed that "roscd" has stopped working on both my recently updated kinetic installation and updated melodic installation. An older installation of melodic has it working as expected. The "/opt/ros/melodic/share/rosbash/rosbash" file is present, but it doesn't load automatically.
If I do ". rosbash" from that folder it works, but it is not getting loaded properly
Looking at this again, it did seem like it was issue with the /opt/ros/kinetic/setup.bash not executing properly.