Skip to content

Commit

Permalink
Compatibility to urdfdom 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dmronga committed Dec 4, 2024
1 parent a6b18be commit 6daa976
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions scripts/full_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ make -j8 && sudo make install && cd ../..

# URDF
sudo apt-get -y install liburdfdom-headers-dev liburdfdom-dev
# compatability with urdfdom >= 4.0.0 (Ubuntu24.04)´
sudo apt-get -y install libtinyxml2-dev

# Clone WBC repo to have the patches
git clone https://github.com/ARC-OPT/wbc.git
Expand Down
4 changes: 3 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ cmake .. -DUSE_SISL=OFF -DBINDINGS_RUBY=OFF -DROCK_VIZ_ENABLED=OFF
make -j8 && sudo make install && cd ../..

# URDF
sudo apt-get -y install liburdfdom-headers-dev liburdfdom-dev
sudo apt-get -y install liburdfdom-headers-dev liburdfdom-dev
# compatability with urdfdom >= 4.0.0
sudo apt-get -y install libtinyxml2-dev

# Clone WBC repo here to have the patches
git clone https://github.com/ARC-OPT/wbc.git
Expand Down
3 changes: 3 additions & 0 deletions src/tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ pkg_search_module(base-types REQUIRED IMPORTED_TARGET base-types)
pkg_search_module(base-logging REQUIRED IMPORTED_TARGET base-logging)
pkg_search_module(urdfdom REQUIRED IMPORTED_TARGET urdfdom)
pkg_search_module(eigen3 REQUIRED IMPORTED_TARGET eigen3)
pkg_search_module(tinyxml2 REQUIRED IMPORTED_TARGET tinyxml2)

list(APPEND PKGCONFIG_REQUIRES base-types)
list(APPEND PKGCONFIG_REQUIRES base-logging)
list(APPEND PKGCONFIG_REQUIRES urdfdom)
list(APPEND PKGCONFIG_REQUIRES tinyxml2)
list(APPEND PKGCONFIG_REQUIRES eigen3)
string (REPLACE ";" " " PKGCONFIG_REQUIRES "${PKGCONFIG_REQUIRES}")

Expand All @@ -24,6 +26,7 @@ target_link_libraries(${TARGET_NAME} PUBLIC
PkgConfig::base-types
PkgConfig::base-logging
PkgConfig::urdfdom
PkgConfig::tinyxml2
PkgConfig::eigen3)

set_target_properties(${TARGET_NAME} PROPERTIES
Expand Down
3 changes: 2 additions & 1 deletion src/tools/URDFTools.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#include "URDFTools.hpp"
#include <base/JointLimits.hpp>
#include <base-logging/Logging.hpp>
#include <urdf_model/link.h>
#include <stack>
#include <fstream>
#include <iostream>
#include <tinyxml2.h>

namespace wbc {

Expand Down

0 comments on commit 6daa976

Please sign in to comment.