Is there a shell command to get ros distro?
Is there something I can run in the shell to get something like: "ros-kinetic" or "ros-lunar", depends on what distro I have? "
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Is there something I can run in the shell to get something like: "ros-kinetic" or "ros-lunar", depends on what distro I have? "
A quick Google search gives me #q33769. The more recent of the two answers there show that if you want to see which distro is in use (Indigo and later), run
rosversion -d
otherwise run
rosversion ros
to see the version for pre-Indigo (for me this command returns <unversioned>
, I'm using Indigo).
Edit:
as @gvdhoorn pointed out in the comments
Additionally, after
source
ing the rightsetup.bash
, theROS_DISTRO
environment variable should be set.
Which means that you can get the ROS distribution with
echo $ROS_DISTRO
as well
Asked: 2018-03-01 16:46:18 -0500
Seen: 3,361 times
Last updated: Mar 02 '18
Equivalent of "catkin_make -DCMAKE_BUILD_TYPE=Release" with catkin build?
Failed to open and upload big image file, map_file and map_server
Controller Spawner stuck while loading
How do I solve the sklearn error
What does 'nan' mean in lidar's scan data?
Considering upgrading Kinetic soon, should I wait till Noetic?