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) remove unused applyPlanningScene #2505

Merged
merged 2 commits into from Nov 3, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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