Public Member Functions | Protected Member Functions | Protected Attributes | Private Slots
moveit_rviz_plugin::PlanningSceneDisplay Class Reference

#include <planning_scene_display.h>

Inheritance diagram for moveit_rviz_plugin::PlanningSceneDisplay:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void addBackgroundJob (const boost::function< void()> &job, const std::string &name)
void addMainLoopJob (const boost::function< void()> &job)
 queue the execution of this function for the next time the main update() loop gets called
void clearJobs ()
 remove all queued jobs
const std::string getMoveGroupNS () const
const
planning_scene_monitor::PlanningSceneMonitorPtr & 
getPlanningSceneMonitor ()
planning_scene_monitor::LockedPlanningSceneRO getPlanningSceneRO () const
planning_scene_monitor::LockedPlanningSceneRW getPlanningSceneRW ()
const
robot_model::RobotModelConstPtr & 
getRobotModel () const
virtual void load (const rviz::Config &config)
 PlanningSceneDisplay (bool listen_to_planning_scene=true, bool show_scene_robot=true)
void queueRenderSceneGeometry ()
virtual void reset ()
virtual void save (rviz::Config config) const
void setLinkColor (const std::string &link_name, const QColor &color)
void spawnBackgroundJob (const boost::function< void()> &job)
void unsetLinkColor (const std::string &link_name)
virtual void update (float wall_dt, float ros_dt)
void waitForAllMainLoopJobs ()
virtual ~PlanningSceneDisplay ()

Protected Member Functions

void calculateOffsetPosition ()
 Set the scene node's position, given the target frame and the planning frame.
void clearRobotModel ()
virtual
planning_scene_monitor::PlanningSceneMonitorPtr 
createPlanningSceneMonitor ()
void executeMainLoopJobs ()
virtual void fixedFrameChanged ()
void loadRobotModel ()
virtual void onDisable ()
virtual void onEnable ()
virtual void onInitialize ()
virtual void onRobotModelLoaded ()
 This is an event called by loadRobotModel() in the MainLoop; do not call directly.
virtual void onSceneMonitorReceivedUpdate (planning_scene_monitor::PlanningSceneMonitor::SceneUpdateType update_type)
void renderPlanningScene ()
void sceneMonitorReceivedUpdate (planning_scene_monitor::PlanningSceneMonitor::SceneUpdateType update_type)
void setGroupColor (rviz::Robot *robot, const std::string &group_name, const QColor &color)
void setLinkColor (rviz::Robot *robot, const std::string &link_name, const QColor &color)
void unsetAllColors (rviz::Robot *robot)
void unsetGroupColor (rviz::Robot *robot, const std::string &group_name)
void unsetLinkColor (rviz::Robot *robot, const std::string &link_name)
virtual void updateInternal (float wall_dt, float ros_dt)

Protected Attributes

rviz::ColorPropertyattached_body_color_property_
moveit::tools::BackgroundProcessing background_process_
float current_scene_time_
std::deque< boost::function
< void()> > 
main_loop_jobs_
boost::condition_variable main_loop_jobs_empty_condition_
boost::mutex main_loop_jobs_lock_
bool model_is_loading_
rviz::StringPropertymove_group_ns_property_
rviz::EnumPropertyoctree_coloring_property_
rviz::EnumPropertyoctree_render_property_
planning_scene_monitor::PlanningSceneMonitorPtr planning_scene_monitor_
bool planning_scene_needs_render_
Ogre::SceneNode * planning_scene_node_
 displays planning scene with everything in it
PlanningSceneRenderPtr planning_scene_render_
RobotStateVisualizationPtr planning_scene_robot_
rviz::RosTopicPropertyplanning_scene_topic_property_
rviz::FloatPropertyrobot_alpha_property_
rviz::Propertyrobot_category_
rviz::StringPropertyrobot_description_property_
boost::mutex robot_model_loading_lock_
rviz::FloatPropertyscene_alpha_property_
rviz::Propertyscene_category_
rviz::ColorPropertyscene_color_property_
rviz::FloatPropertyscene_display_time_property_
rviz::BoolPropertyscene_enabled_property_
rviz::StringPropertyscene_name_property_
rviz::BoolPropertyscene_robot_collision_enabled_property_
rviz::BoolPropertyscene_robot_visual_enabled_property_

Private Slots

void changedAttachedBodyColor ()
void changedMoveGroupNS ()
void changedOctreeColorMode ()
void changedOctreeRenderMode ()
void changedPlanningSceneTopic ()
void changedRobotDescription ()
void changedRobotSceneAlpha ()
void changedSceneAlpha ()
void changedSceneColor ()
void changedSceneDisplayTime ()
void changedSceneEnabled ()
void changedSceneName ()
void changedSceneRobotCollisionEnabled ()
void changedSceneRobotVisualEnabled ()

Detailed Description

Definition at line 68 of file planning_scene_display.h.


Constructor & Destructor Documentation

moveit_rviz_plugin::PlanningSceneDisplay::PlanningSceneDisplay ( bool  listen_to_planning_scene = true,
bool  show_scene_robot = true 
)

Definition at line 65 of file planning_scene_display.cpp.

Definition at line 158 of file planning_scene_display.cpp.


Member Function Documentation

void moveit_rviz_plugin::PlanningSceneDisplay::addBackgroundJob ( const boost::function< void()> &  job,
const std::string &  name 
)

Queue this function call for execution within the background thread All jobs are queued and processed in order by a single background thread.

Definition at line 215 of file planning_scene_display.cpp.

void moveit_rviz_plugin::PlanningSceneDisplay::addMainLoopJob ( const boost::function< void()> &  job)

queue the execution of this function for the next time the main update() loop gets called

Definition at line 225 of file planning_scene_display.cpp.

Set the scene node's position, given the target frame and the planning frame.

Definition at line 641 of file planning_scene_display.cpp.

Definition at line 295 of file planning_scene_display.cpp.

Definition at line 305 of file planning_scene_display.cpp.

Definition at line 385 of file planning_scene_display.cpp.

Definition at line 381 of file planning_scene_display.cpp.

Definition at line 365 of file planning_scene_display.cpp.

Definition at line 311 of file planning_scene_display.cpp.

Definition at line 356 of file planning_scene_display.cpp.

Definition at line 351 of file planning_scene_display.cpp.

Definition at line 300 of file planning_scene_display.cpp.

Definition at line 377 of file planning_scene_display.cpp.

Definition at line 407 of file planning_scene_display.cpp.

Definition at line 317 of file planning_scene_display.cpp.

Definition at line 398 of file planning_scene_display.cpp.

Definition at line 389 of file planning_scene_display.cpp.

remove all queued jobs

Definition at line 170 of file planning_scene_display.cpp.

This function is used by loadRobotModel() and should only be called in the MainLoop You probably should not call this function directly

Definition at line 491 of file planning_scene_display.cpp.

planning_scene_monitor::PlanningSceneMonitorPtr moveit_rviz_plugin::PlanningSceneDisplay::createPlanningSceneMonitor ( ) [protected, virtual]

This function constructs a new planning scene. Probably this should be called in a background thread as it may take some time to complete its execution

Definition at line 484 of file planning_scene_display.cpp.

Reimplemented in moveit_rviz_plugin::MotionPlanningDisplay.

Definition at line 238 of file planning_scene_display.cpp.

Reimplemented from rviz::Display.

Reimplemented in moveit_rviz_plugin::MotionPlanningDisplay.

Definition at line 655 of file planning_scene_display.cpp.

Definition at line 269 of file planning_scene_display.cpp.

const planning_scene_monitor::PlanningSceneMonitorPtr & moveit_rviz_plugin::PlanningSceneDisplay::getPlanningSceneMonitor ( )

Definition at line 264 of file planning_scene_display.cpp.

Definition at line 285 of file planning_scene_display.cpp.

Definition at line 290 of file planning_scene_display.cpp.

const robot_model::RobotModelConstPtr & moveit_rviz_plugin::PlanningSceneDisplay::getRobotModel ( ) const

Definition at line 274 of file planning_scene_display.cpp.

Reimplemented from rviz::Display.

Reimplemented in moveit_rviz_plugin::MotionPlanningDisplay.

Definition at line 628 of file planning_scene_display.cpp.

This function reloads the robot model and reinitializes the PlanningSceneMonitor It can be called either from the Main Loop or from a Background thread

Definition at line 498 of file planning_scene_display.cpp.

Reimplemented from rviz::Display.

Reimplemented in moveit_rviz_plugin::MotionPlanningDisplay.

Definition at line 589 of file planning_scene_display.cpp.

Reimplemented from rviz::Display.

Reimplemented in moveit_rviz_plugin::MotionPlanningDisplay.

Definition at line 568 of file planning_scene_display.cpp.

Reimplemented from rviz::Display.

Reimplemented in moveit_rviz_plugin::MotionPlanningDisplay.

Definition at line 179 of file planning_scene_display.cpp.

This is an event called by loadRobotModel() in the MainLoop; do not call directly.

Reimplemented in moveit_rviz_plugin::MotionPlanningDisplay.

Definition at line 531 of file planning_scene_display.cpp.

Reimplemented in moveit_rviz_plugin::MotionPlanningDisplay.

Definition at line 557 of file planning_scene_display.cpp.

Definition at line 602 of file planning_scene_display.cpp.

Definition at line 324 of file planning_scene_display.cpp.

Reimplemented from rviz::Display.

Reimplemented in moveit_rviz_plugin::MotionPlanningDisplay.

Definition at line 198 of file planning_scene_display.cpp.

Reimplemented from rviz::Display.

Reimplemented in moveit_rviz_plugin::MotionPlanningDisplay.

Definition at line 633 of file planning_scene_display.cpp.

Definition at line 551 of file planning_scene_display.cpp.

void moveit_rviz_plugin::PlanningSceneDisplay::setGroupColor ( rviz::Robot robot,
const std::string &  group_name,
const QColor &  color 
) [protected]

Definition at line 413 of file planning_scene_display.cpp.

void moveit_rviz_plugin::PlanningSceneDisplay::setLinkColor ( const std::string &  link_name,
const QColor &  color 
)

Definition at line 451 of file planning_scene_display.cpp.

void moveit_rviz_plugin::PlanningSceneDisplay::setLinkColor ( rviz::Robot robot,
const std::string &  link_name,
const QColor &  color 
) [protected]

Definition at line 463 of file planning_scene_display.cpp.

void moveit_rviz_plugin::PlanningSceneDisplay::spawnBackgroundJob ( const boost::function< void()> &  job)

Directly spawn a (detached) background thread for execution of this function call Should be used, when order of processing is not relevant / job can run in parallel. Must be used, when job will be blocking. Using addBackgroundJob() in this case will block other queued jobs as well

Definition at line 220 of file planning_scene_display.cpp.

Definition at line 427 of file planning_scene_display.cpp.

void moveit_rviz_plugin::PlanningSceneDisplay::unsetGroupColor ( rviz::Robot robot,
const std::string &  group_name 
) [protected]

Definition at line 437 of file planning_scene_display.cpp.

void moveit_rviz_plugin::PlanningSceneDisplay::unsetLinkColor ( const std::string &  link_name)

Definition at line 457 of file planning_scene_display.cpp.

void moveit_rviz_plugin::PlanningSceneDisplay::unsetLinkColor ( rviz::Robot robot,
const std::string &  link_name 
) [protected]

Definition at line 472 of file planning_scene_display.cpp.

void moveit_rviz_plugin::PlanningSceneDisplay::update ( float  wall_dt,
float  ros_dt 
) [virtual]

Reimplemented from rviz::Display.

Reimplemented in moveit_rviz_plugin::MotionPlanningDisplay.

Definition at line 607 of file planning_scene_display.cpp.

void moveit_rviz_plugin::PlanningSceneDisplay::updateInternal ( float  wall_dt,
float  ros_dt 
) [protected, virtual]

Reimplemented in moveit_rviz_plugin::MotionPlanningDisplay.

Definition at line 617 of file planning_scene_display.cpp.

Definition at line 231 of file planning_scene_display.cpp.


Member Data Documentation

Definition at line 202 of file planning_scene_display.h.

Definition at line 175 of file planning_scene_display.h.

Definition at line 187 of file planning_scene_display.h.

std::deque<boost::function<void()> > moveit_rviz_plugin::PlanningSceneDisplay::main_loop_jobs_ [protected]

Definition at line 176 of file planning_scene_display.h.

Definition at line 178 of file planning_scene_display.h.

Definition at line 177 of file planning_scene_display.h.

Definition at line 172 of file planning_scene_display.h.

Definition at line 192 of file planning_scene_display.h.

Definition at line 205 of file planning_scene_display.h.

Definition at line 204 of file planning_scene_display.h.

planning_scene_monitor::PlanningSceneMonitorPtr moveit_rviz_plugin::PlanningSceneDisplay::planning_scene_monitor_ [protected]

Definition at line 171 of file planning_scene_display.h.

Definition at line 186 of file planning_scene_display.h.

displays planning scene with everything in it

Definition at line 180 of file planning_scene_display.h.

Definition at line 184 of file planning_scene_display.h.

Definition at line 183 of file planning_scene_display.h.

Definition at line 198 of file planning_scene_display.h.

Definition at line 199 of file planning_scene_display.h.

Definition at line 190 of file planning_scene_display.h.

Definition at line 193 of file planning_scene_display.h.

Definition at line 173 of file planning_scene_display.h.

Definition at line 200 of file planning_scene_display.h.

Definition at line 189 of file planning_scene_display.h.

Definition at line 201 of file planning_scene_display.h.

Definition at line 203 of file planning_scene_display.h.

Definition at line 195 of file planning_scene_display.h.

Definition at line 194 of file planning_scene_display.h.

Definition at line 197 of file planning_scene_display.h.

Definition at line 196 of file planning_scene_display.h.


The documentation for this class was generated from the following files:


visualization
Author(s): Ioan Sucan , Dave Coleman , Sachin Chitta
autogenerated on Mon Jul 24 2017 02:22:14