Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix urdf include #3026

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions moveit2.repos
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ repositories:
type: git
url: https://github.com/moveit/moveit_resources.git
version: ros2
srdfdom:
type: git
url: https://github.com/moveit/srdfdom.git
version: ros2
4 changes: 4 additions & 0 deletions moveit_core/constraint_samplers/test/pr2_arm_ik.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@
#pragma once

#include <urdf_model/model.h>
#if __has_include(<urdf/model.hpp>)
#include <urdf/model.hpp>
#else
#include <urdf/model.h>
#endif
#include <Eigen/Geometry>
#include <Eigen/LU> // provides LU decomposition
#include <kdl/chainiksolver.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@

#include <kdl/chainfksolverpos_recursive.hpp>

#if __has_include(<urdf/model.hpp>)
#include <urdf/model.hpp>
#else
#include <urdf/model.h>
#endif

#include <moveit/kinematics_base/kinematics_base.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@
#pragma once

#include <srdfdom/srdf_writer.h>
#if __has_include(<urdf/model.hpp>)
#include <urdf/model.hpp>
#else
#include <urdf/model.h>
#endif
#include <moveit/robot_model/robot_model.h>
#include <geometry_msgs/msg/pose.hpp>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@

#include <moveit/macros/class_forward.h>
#include <moveit/rdf_loader/synchronized_string_parameter.h>
#if __has_include(<urdf/model.hpp>)
#include <urdf/model.hpp>
#else
#include <urdf/model.h>
#endif
#include <srdfdom/model.h>
#include <rclcpp/rclcpp.hpp>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@
#pragma once

#include <moveit_setup_framework/config.hpp>
#include <urdf/model.h> // for testing a valid urdf is loaded
#if __has_include(<urdf/model.hpp>) // for testing a valid urdf is loaded
#include <urdf/model.hpp>
#else
#include <urdf/model.h>
#endif

namespace moveit_setup
{
Expand Down
Loading