Skip to content

Commit

Permalink
feat: set rot_type = XYZW by deafult
Browse files Browse the repository at this point in the history
  • Loading branch information
HiroIshida committed Feb 18, 2025
1 parent 13a78a5 commit 74d4127
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/plainmp/robot_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,13 @@ def create_config_point_const(self, q: np.ndarray) -> ConfigPointCst:
return ConfigPointCst(self.get_kin(), self.control_joint_names, self.base_type, q)

def create_pose_const_from_coords(
self, link_names: List[str], link_poses: List[Coordinates], rot_types: List[RotType]
self,
link_names: List[str],
link_poses: List[Coordinates],
rot_types: Optional[List[RotType]] = None,
) -> LinkPoseCst:
if rot_types is None:
rot_types = [RotType.XYZW] * len(link_poses)
pose_list = []
for co, rt in zip(link_poses, rot_types):
pose = self.coordinates_to_pose_vec(co, rt)
Expand Down

0 comments on commit 74d4127

Please sign in to comment.