Open avpai opened 5 years ago
You correctly use a geometry_msgs::PoseStamped
to get the messages from the subscriber to /iiwa/state/CartesianPose
.
iiwa_ros::CartesianQuantityFromDouble
simply does what the name says, gives you a CartesianQuantity
, which is defined in iiwa_msgs as (X,Y,Z,A,B,C), as a Cartesian pose is (weirdly) internally represented in Sunrise.
So a CartesianQuantity
is just different than a geometry_msgs::Pose
, you should simply not use that function. It is to create a CartesianQuantity
, which you don't need.
Just fill the fields of the message to send in some other way ^^
Hi, I am trying to use the Cartesian Pose feature to control the end effector. But I am having an Issue with setting the CartesianPose. Below is my current program:
I identified the problem. The my_cartesian_pose is defined to be from the geometry_msgs class while the CartesianQuantityFromDouble() uses iiwa_msgs. I checked the iiwa_ros.cpp to see if we defined the my_cartesian_pose correctly and even in that file its using the geometry_msgs. I am able to subscribe and read the current cartesian pose (x,y,z and a,b,c) but this clash between two classes is stopping me from publishing new pose. Is there any work around? Am I defining the 'my_cartesian_pose' right?