Skip to content

Commit

Permalink
(moveit_py) remove unused applyPlanningScene (#2505)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh authored Nov 3, 2023
1 parent 09019d2 commit ce240bd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,6 @@ void LockedPlanningSceneContextManagerRW::lockedPlanningSceneRwExit(const py::ob
ls_rw_.reset();
}

// TODO: simplify with typecaster
void applyPlanningScene(std::shared_ptr<planning_scene_monitor::PlanningSceneMonitor>& planning_scene_monitor,
const moveit_msgs::msg::PlanningScene& planning_scene)
{
// lock planning scene
{
planning_scene_monitor::LockedPlanningSceneRW scene(planning_scene_monitor);
scene->usePlanningSceneMsg(planning_scene);
}
}

void initPlanningSceneMonitor(py::module& m)
{
py::class_<planning_scene_monitor::PlanningSceneMonitor, planning_scene_monitor::PlanningSceneMonitorPtr>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,6 @@ readWrite(const planning_scene_monitor::PlanningSceneMonitorPtr& planning_scene_
LockedPlanningSceneContextManagerRO
readOnly(const planning_scene_monitor::PlanningSceneMonitorPtr& planning_scene_monitor);

// const planning_scene::PlanningScenePtr& locked_planning_scene_enter_(LockedPlanningSceneContextManager& context_manager);

// void locked_planning_scene_exit_(LockedPlanningSceneContextManager& context_manager, const py::object& type,
// const py::object& value, const py::object& traceback);

void applyPlanningScene(std::shared_ptr<planning_scene_monitor::PlanningSceneMonitor>& planning_scene_monitor,
const moveit_msgs::msg::PlanningScene& planning_scene);

void initPlanningSceneMonitor(py::module& m);

void initContextManagers(py::module& m);
Expand Down

0 comments on commit ce240bd

Please sign in to comment.