Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(moveit_py) add update_frame_transforms to planning_scene_monitor #2521

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions moveit_py/moveit/planning.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class PlanningSceneMonitor:
def start_state_monitor(self, *args, **kwargs) -> Any: ...
def stop_scene_monitor(self, *args, **kwargs) -> Any: ...
def stop_state_monitor(self, *args, **kwargs) -> Any: ...
def update_frame_transforms(self, *args, **kwargs) -> Any: ...
def wait_for_current_robot_state(self, *args, **kwargs) -> Any: ...
@property
def name(self) -> Any: ...
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ void initPlanningSceneMonitor(py::module& m)
str: The name of this planning scene monitor.
)")

.def("update_frame_transforms", &planning_scene_monitor::PlanningSceneMonitor::updateFrameTransforms,
R"(
Update the transforms for the frames that are not part of the kinematic model using tf.

Examples of these frames are the "map" and "odom_combined" transforms. This function is automatically called
when data that uses transforms is received.
However, this function should also be called before starting a planning request, for example.
)")

.def("start_scene_monitor", &planning_scene_monitor::PlanningSceneMonitor::startSceneMonitor,
R"(
Starts the scene monitor.
Expand Down