You can include "gazebo/gazebo_config.h" which contains the following #defines: #define GAZEBO_MAJOR_VERSION 1 #define GAZEBO_MINOR_VERSION 4 #define GAZEBO_PATCH_VERSION 0 #define GAZEBO_VERSION "1.4" #define GAZEBO_VERSION_FULL "1.4.0" The numbers will obviously be different. -nate On Fri, Feb 1, 2013 at 8:24 AM, Jack O'Quin wrote: > > On Fri, Feb 1, 2013 at 10:12 AM, Nate Koenig wrote: > >> Hi Jack, >> >> Yes, Gazebo 1.3 should have waited until Hydro. It will be more damaging >> to revert Groovy back to Gazebo 1.2, so we will keep Gazebo 1.3 in Groovy. >> > > Agreed. Sorry for belaboring that point. > > Is there a Gazebo version macro we can test to make our code work with > both 1.2 and 1.3? > -- > joq