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

Replace tf_conversions with tf2::convert #66

Merged
merged 2 commits into from
Jun 16, 2020
Merged
Changes from 1 commit
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
10 changes: 5 additions & 5 deletions src/imarker_end_effector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
#include <string>

// Conversions
#include <eigen_conversions/eigen_msg.h>
#include <tf_conversions/tf_eigen.h>
#include <tf2_eigen/tf2_eigen.h>
#include <tf2/convert.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is redundant

Suggested change
#include <tf2/convert.h>


// this package
#include <moveit_visual_tools/imarker_robot_state.h>
Expand Down Expand Up @@ -117,7 +117,7 @@ void IMarkerEndEffector::iMarkerCallback(const visualization_msgs::InteractiveMa

// Convert
Eigen::Isometry3d robot_ee_pose;
tf::poseMsgToEigen(feedback->pose, robot_ee_pose);
tf2::convert(feedback->pose, robot_ee_pose);

// Update robot
solveIK(robot_ee_pose);
Expand Down Expand Up @@ -170,7 +170,7 @@ void IMarkerEndEffector::initializeInteractiveMarkers()
{
// Convert
geometry_msgs::Pose pose_msg;
tf::poseEigenToMsg(imarker_pose_, pose_msg);
tf2::convert(imarker_pose_, pose_msg);

// marker
make6DofMarker(pose_msg);
Expand All @@ -187,7 +187,7 @@ void IMarkerEndEffector::sendUpdatedIMarkerPose()
{
// Convert
geometry_msgs::Pose pose_msg;
tf::poseEigenToMsg(imarker_pose_, pose_msg);
tf2::convert(imarker_pose_, pose_msg);

imarker_server_->setPose(int_marker_.name, pose_msg);
imarker_server_->applyChanges();
Expand Down