MCPcopy Create free account
hub / github.com/SAMMiCA/ChangeSim / pose_stamped_to_pq

Function pose_stamped_to_pq

script/utils/msg_transform.py:27–35  ·  view source on GitHub ↗

Convert a C{geometry_msgs/PoseStamped} into position/quaternion np arrays @param msg: ROS message to be converted @return: - p: position as a np.array - q: quaternion as a numpy array (order = [x,y,z,w])

(msg)

Source from the content-addressed store, hash-verified

25
26
27def pose_stamped_to_pq(msg):
28 """Convert a C{geometry_msgs/PoseStamped} into position/quaternion np arrays
29
30 @param msg: ROS message to be converted
31 @return:
32 - p: position as a np.array
33 - q: quaternion as a numpy array (order = [x,y,z,w])
34 """
35 return pose_to_pq(msg.pose)
36
37
38def transform_to_pq(msg):

Callers 1

msg_to_se3Function · 0.85

Calls 1

pose_to_pqFunction · 0.85

Tested by

no test coverage detected