Skip to content
Snippets Groups Projects
Commit b6c778aa authored by David Tiede's avatar David Tiede
Browse files

Replace computeCartesianPath

parent 4c32d496
No related branches found
No related tags found
No related merge requests found
...@@ -38,20 +38,14 @@ void move_toCallback(const std_msgs::String::ConstPtr& msg) ...@@ -38,20 +38,14 @@ void move_toCallback(const std_msgs::String::ConstPtr& msg)
std::string strA ("A"); std::string strA ("A");
std::string strB ("B"); std::string strB ("B");
if (strA == msg->data) { if (strA == msg->data) {
waypoints.push_back(target_pose_1); group.setPoseTarget(target_pose_1);
} else if (strB == msg->data) { } else if (strB == msg->data) {
waypoints.push_back(target_pose_2); group.setPoseTarget(target_pose_2);
} else { } else {
ROS_WARN("ADAPTER PACKAGE: Wrong message."); ROS_WARN("ADAPTER PACKAGE: Wrong message.");
return; return;
} }
///moveit::planning_interface::MoveGroupInterface::Plan plan;
//moveit_msgs::RobotTrajectory trajectory_msg;
//group.computeCartesianPath(waypoints, 0.01, 0.0, trajectory_msg, true);
//plan.trajectory_ = trajectory_msg;
//group.execute(plan);
group.setPoseTarget(target_pose_2);
group.move(); group.move();
ROS_INFO("ADAPTER PACKAGE: Finished movement."); ROS_INFO("ADAPTER PACKAGE: Finished movement.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment