jt_type jt = wam.getJointTorques();
jv_type jv = wam.getJointVelocities();
cp_type cp_pub = wam.getToolPosition();
-// Eigen::Quaterniond to_pub = wam.getToolOrientation();
+ Eigen::Quaterniond to_pub = wam.getToolOrientation();
//publishing sensor_msgs/JointState to wam/joint_states
for (size_t i = 0; i < DOF; i++)
//publishing geometry_msgs/PoseStamed to wam/pose
wam_pose.header.stamp = ros::Time::now();
-/*
+
wam_pose.pose.position.x = cp_pub[0];
wam_pose.pose.position.y = cp_pub[1];
wam_pose.pose.position.z = cp_pub[2];
wam_pose.pose.orientation.x = to_pub.x();
wam_pose.pose.orientation.y = to_pub.y();
wam_pose.pose.orientation.z = to_pub.z();
-*/
+
wam_pose_pub.publish(wam_pose);
}