-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #241 from traversaro/addpilz
Add pilz-industrial-motion-planner on Windows
- Loading branch information
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
diff --git a/moveit_planners/pilz_industrial_motion_planner/src/trajectory_functions.cpp b/moveit_planners/pilz_industrial_motion_planner/src/trajectory_functions.cpp | ||
index c1fccdf3bd..01a7f11b59 100644 | ||
--- a/moveit_planners/pilz_industrial_motion_planner/src/trajectory_functions.cpp | ||
+++ b/moveit_planners/pilz_industrial_motion_planner/src/trajectory_functions.cpp | ||
@@ -117,7 +117,7 @@ bool pilz_industrial_motion_planner::computePoseIK(const planning_scene::Plannin | ||
const double timeout) | ||
{ | ||
Eigen::Isometry3d pose_eigen; | ||
- tf2::convert<geometry_msgs::msg::Pose, Eigen::Isometry3d>(pose, pose_eigen); | ||
+ tf2::fromMsg(pose, pose_eigen); | ||
return computePoseIK(scene, group_name, link_name, pose_eigen, frame_id, seed, solution, check_self_collision, | ||
timeout); | ||
} | ||
@@ -591,7 +591,7 @@ bool pilz_industrial_motion_planner::isStateColliding(const planning_scene::Plan | ||
void normalizeQuaternion(geometry_msgs::msg::Quaternion& quat) | ||
{ | ||
tf2::Quaternion q; | ||
- tf2::convert<geometry_msgs::msg::Quaternion, tf2::Quaternion>(quat, q); | ||
+ tf2::fromMsg(quat, q); | ||
quat = tf2::toMsg(q.normalized()); | ||
} | ||
|
||
diff --git a/moveit_planners/pilz_industrial_motion_planner/include/joint_limits_copy/joint_limits_rosparam.hpp b/moveit_planners/pilz_industrial_motion_planner/include/joint_limits_copy/joint_limits_rosparam.hpp | ||
index 89bd99f1da..b135d1c3d3 100644 | ||
--- a/moveit_planners/pilz_industrial_motion_planner/include/joint_limits_copy/joint_limits_rosparam.hpp | ||
+++ b/moveit_planners/pilz_industrial_motion_planner/include/joint_limits_copy/joint_limits_rosparam.hpp | ||
@@ -32,7 +32,7 @@ namespace | ||
template <typename T> | ||
void declareParameterTemplate(const rclcpp::Node::SharedPtr& node, const std::string& name, T default_value) | ||
{ | ||
- if (not node->has_parameter(name)) | ||
+ if (!node->has_parameter(name)) | ||
{ | ||
node->declare_parameter<T>(name, default_value); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters