How to get ROS version?
Hi, is there a way how to get ROS version which I'm using. I mean not the one of electric, fuerte and so on, but if I'm using beta or not?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
As of Indigo the correct command for ROS1 is:
rosversion -d
For ROS2 instead use:
echo $ROS_DISTRO
rosversion -d gives me "jade" rosversion roscpp gives me "1.11.16" Does it mean I am using 1.11.16 jade version? Thank you
rosversion ros
This will print a version number. The current Fuerte release has version number 1.8. Everything above should be unstable at the moment.
It fails for me on Hydro, too. That may be a new bug. It should say 1.10.0. Probably worth a defect ticket: https://github.com/ros/ros/issues/new
$ rosversion ros <unversioned> with current kinetic (1.12.2) mmh?
Asked: 2012-05-11 00:34:15 -0600
Seen: 234,333 times
Last updated: May 11 '22
As this is a popular question and a top google result, maybe the accepted answer should be changed to a current solution, like the one presented by merosss