Skip to content

Commit 15c17c5

Browse files
committed
Use frame_id in MoveIt2._plan_cartesian_path()
Signed-off-by: Andrej Orsula <orsula.andrej@gmail.com>
1 parent 854beb1 commit 15c17c5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pymoveit2/moveit2.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,7 @@ def _plan_cartesian_path(
980980
self,
981981
max_step: float = 0.0025,
982982
wait_for_server_timeout_sec: Optional[float] = 1.0,
983+
frame_id: Optional[str] = None,
983984
) -> Optional[JointTrajectory]:
984985

985986
# Re-use request from move action goal
@@ -992,6 +993,10 @@ def _plan_cartesian_path(
992993
self.__cartesian_path_request.link_name = self.__end_effector_name
993994
self.__cartesian_path_request.max_step = max_step
994995

996+
self.__cartesian_path_request.header.frame_id = (
997+
frame_id if frame_id is not None else self.__base_link_name
998+
)
999+
9951000
stamp = self._node.get_clock().now().to_msg()
9961001
self.__cartesian_path_request.header.stamp = stamp
9971002

0 commit comments

Comments
 (0)