Covnert geometry_msg/StampedPoint to Stamped pose
Hi guys.
I'm trying to convert point to pose.
But i don't know how to do.
I saw topic_tool package, but the only example is about stg_msgs. I can't find parameteres that i need. :(
And i also saw 'covert pose to point' (https://answers.ros.org/question/2491...)
The answer is so simple. But it's not for me.
Thanks you for your interest, Ray.
(edit) Code
rosrun topic_tools transform /clicked_point /clicked_pose geometry_msgs/PoseStamped \
'geometry_msgs.msg.PoseStamped( \
header=m.header, \
pose=geometry_msgs.msg.Pose( \
position=m.position, \
orientation=geometry_msgs.msg.Quaternion( \
orientation.x = 0.0 \
orientation.y = 0.0 \
orientation.z = 0.0 \
orientation.w = 0.0 \
)))' \
--import geometry_msgs
Error
Traceback (most recent call last): File "/home/raptor/nav_ws/src/ros_comm/clients/rospy/src/rospy/topics.py", line 750, in _invoke_callback cb(msg) File "/home/raptor/nav_ws/src/ros_comm/tools/topic_tools/scripts/transform", line 94, in callback res = eval("{}".format(self.expression), self.modules, {'m': m}) File "<string>", line 7 orientation.y = 0.0 \ ^ SyntaxError: invalid syntax