MCPcopy Create free account
hub / github.com/RoboCodeX-source/RoboCodeX_code / get_pose_msg

Function get_pose_msg

instruct_to_policy/scripts/src/env/utils.py:18–27  ·  view source on GitHub ↗
(position: List, orientation: List)

Source from the content-addressed store, hash-verified

16
17
18def get_pose_msg(position: List, orientation: List) -> Pose:
19 pose_msg = Pose()
20 pose_msg.position.x = position[0]
21 pose_msg.position.y = position[1]
22 pose_msg.position.z = position[2]
23 pose_msg.orientation.x = orientation[0]
24 pose_msg.orientation.y = orientation[1]
25 pose_msg.orientation.z = orientation[2]
26 pose_msg.orientation.w = orientation[3]
27 return pose_msg
28
29
30def get_stamped_pose(

Callers 2

graspMethod · 0.90
get_stamped_poseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected