Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

Commit 6967705

Browse files
committed
require version >= 0.4 of urdfdom
1 parent 0822499 commit 6967705

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

urdf/package.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<package format="2">
22
<name>urdf</name>
3-
<version>1.12.12</version>
3+
<version>1.13.0</version>
44
<description>
55
This package contains a C++ parser for the Unified Robot Description
66
Format (URDF), which is an XML format for representing a robot model.
@@ -21,23 +21,23 @@
2121

2222
<buildtool_depend version_gte="0.5.68">catkin</buildtool_depend>
2323

24-
<build_depend>liburdfdom-dev</build_depend>
25-
<build_depend>liburdfdom-headers-dev</build_depend>
24+
<build_depend version_gte="0.5">urdfdom</build_depend>
25+
<build_depend version_gte="0.5">urdfdom_headers</build_depend>
2626
<build_depend>rosconsole_bridge</build_depend>
2727
<build_depend>roscpp</build_depend>
2828
<build_depend>urdf_parser_plugin</build_depend>
2929
<build_depend>pluginlib</build_depend>
3030
<build_depend>cmake_modules</build_depend>
3131
<build_depend>tinyxml</build_depend>
3232

33-
<exec_depend>liburdfdom-dev</exec_depend>
33+
<exec_depend version_gte="0.5">liburdfdom-dev</exec_depend>
3434
<exec_depend>rosconsole_bridge</exec_depend>
3535
<exec_depend>roscpp</exec_depend>
3636
<exec_depend>pluginlib</exec_depend>
3737
<exec_depend>tinyxml</exec_depend>
3838

3939
<build_export_depend>tinyxml</build_export_depend>
40-
<build_export_depend>liburdfdom-headers-dev</build_export_depend>
40+
<build_export_depend version_gte="0.5">liburdfdom-headers-dev</build_export_depend>
4141

4242
<test_depend>rostest</test_depend>
4343

urdf/urdfdom_compatibility.h.in

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@
4141
#define URDFDOM_HEADERS_MINOR_VERSION @URDFDOM_HEADERS_MINOR_VERSION@
4242
#define URDFDOM_HEADERS_REVISION_VERSION @URDFDOM_HEADERS_REVISION_VERSION@
4343

44-
// Define shared pointers for urdfdom versions less than 0.4
45-
// Plus define ModelSharedPtr for 0.4
46-
#if URDFDOM_HEADERS_MAJOR_VERSION == 0 && URDFDOM_HEADERS_MINOR_VERSION <= 4
44+
// for Wily: maintain compatibility between urdfdom 0.3 and 0.4 (definining SharedPtr types)
45+
#if URDFDOM_HEADERS_MAJOR_VERSION < 1
4746

4847
#include <boost/shared_ptr.hpp>
4948
#include <boost/weak_ptr.hpp>
@@ -84,7 +83,7 @@ URDF_TYPEDEF_CLASS_POINTER(Model);
8483

8584
#undef URDF_TYPEDEF_CLASS_POINTER
8685

87-
#else // urdfdom <= 0.4
86+
#else // urdfdom < 1.0
8887

8988
#include <urdf_model/types.h>
9089
#include <urdf_world/types.h>
@@ -102,6 +101,6 @@ typedef std::shared_ptr<const Model> ModelConstSharedPtr;
102101
typedef std::weak_ptr<Model> ModelWeakPtr;
103102
}
104103

105-
#endif // urdfdom > 0.4
104+
#endif // urdfdom >= 1.0
106105

107106
#endif // URDF_URDFDOM_COMPATIBILITY_

0 commit comments

Comments
 (0)