#include <planning_scene_display.h>
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 More... | |
void | clearJobs () |
remove all queued jobs More... | |
const std::string | getMoveGroupNS () const |
const planning_scene_monitor::PlanningSceneMonitorPtr & | getPlanningSceneMonitor () |
planning_scene_monitor::LockedPlanningSceneRO | getPlanningSceneRO () const |
get read-only access to planning scene More... | |
planning_scene_monitor::LockedPlanningSceneRW | getPlanningSceneRW () |
get write access to planning scene More... | |
const moveit::core::RobotModelConstPtr & | getRobotModel () const |
void | load (const rviz::Config &config) override |
PlanningSceneDisplay (bool listen_to_planning_scene=true, bool show_scene_robot=true) | |
void | queueRenderSceneGeometry () |
void | reset () override |
void | save (rviz::Config config) const override |
void | setLinkColor (const std::string &link_name, const QColor &color) |
void | spawnBackgroundJob (const boost::function< void()> &job) |
void | unsetLinkColor (const std::string &link_name) |
void | update (float wall_dt, float ros_dt) override |
void | waitForAllMainLoopJobs () |
bool | waitForCurrentRobotState (const ros::Time &t=ros::Time::now()) |
wait for robot state more recent than t More... | |
~PlanningSceneDisplay () override | |
![]() | |
virtual void | deleteStatus (const QString &name) |
void | deleteStatusStd (const std::string &name) |
Display () | |
void | emitTimeSignal (ros::Time time) |
QWidget * | getAssociatedWidget () const |
PanelDockWidget * | getAssociatedWidgetPanel () |
virtual QString | getClassId () const |
Ogre::SceneNode * | getSceneNode () const |
QVariant | getViewData (int column, int role) const override |
Qt::ItemFlags | getViewFlags (int column) const override |
uint32_t | getVisibilityBits () |
void | initialize (DisplayContext *context) |
bool | isEnabled () const |
void | setAssociatedWidget (QWidget *widget) |
virtual void | setClassId (const QString &class_id) |
void | setFixedFrame (const QString &fixed_frame) |
void | setName (const QString &name) override |
virtual void | setStatus (StatusProperty::Level level, const QString &name, const QString &text) |
void | setStatusStd (StatusProperty::Level level, const std::string &name, const std::string &text) |
virtual void | setTopic (const QString &topic, const QString &datatype) |
void | setVisibilityBits (uint32_t bits) |
void | unsetVisibilityBits (uint32_t bits) |
~Display () override | |
![]() | |
BoolProperty (const QString &name, bool default_value, const QString &description, P *parent, Func &&changed_slot) | |
BoolProperty (const QString &name, bool default_value, const QString &description, Property *parent, Func &&changed_slot, const R *receiver) | |
BoolProperty (const QString &name=QString(), bool default_value=false, const QString &description=QString(), Property *parent=nullptr) | |
virtual bool | getBool () const |
bool | getDisableChildren () override |
bool | getDisableChildrenIfFalse () |
void | setDisableChildrenIfFalse (bool disable) |
~BoolProperty () override | |
![]() | |
virtual void | addChild (Property *child, int index=-1) |
Property * | childAt (int index) const |
virtual Property * | childAtUnchecked (int index) const |
virtual void | collapse () |
std::enable_if<!QtPrivate::FunctionPointer< Func >::IsPointerToMemberFunction, QMetaObject::Connection >::type | connect (const QObject *context, Func &&slot, Qt::ConnectionType type=Qt::AutoConnection) |
QMetaObject::Connection | connect (const QObject *receiver, const char *slot, Qt::ConnectionType type=Qt::AutoConnection) |
std::enable_if< QtPrivate::FunctionPointer< Func >::IsPointerToMemberFunction, QMetaObject::Connection >::type | connect (const R *receiver, Func &&slot, Qt::ConnectionType type=Qt::AutoConnection) |
std::enable_if<!QtPrivate::FunctionPointer< Func >::IsPointerToMemberFunction, QMetaObject::Connection >::type | connect (Func &&slot, Qt::ConnectionType type=Qt::AutoConnection) |
bool | contains (Property *possible_child) const |
virtual QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option) |
virtual void | expand () |
virtual QString | getDescription () const |
virtual bool | getHidden () const |
virtual QIcon | getIcon () const |
PropertyTreeModel * | getModel () const |
virtual QString | getName () const |
std::string | getNameStd () const |
Property * | getParent () const |
virtual bool | getReadOnly () const |
virtual QVariant | getValue () const |
void | hide () |
void | insertChildSorted (Property *child) |
bool | isAncestorOf (Property *possible_child) const |
virtual void | moveChild (int from_index, int to_index) |
virtual int | numChildren () const |
virtual bool | paint (QPainter *painter, const QStyleOptionViewItem &option) const |
Property (const QString &name, const QVariant &default_value, const QString &description, P *parent, Func &&changed_slot) | |
Property (const QString &name, const QVariant &default_value, const QString &description, Property *parent, Func &&changed_slot, const R *receiver) | |
Property (const QString &name=QString(), const QVariant &default_value=QVariant(), const QString &description=QString(), Property *parent=nullptr) | |
virtual void | removeChildren (int start_index=0, int count=-1) |
int | rowNumberInParent () const |
virtual void | setDescription (const QString &description) |
virtual void | setHidden (bool hidden) |
virtual void | setIcon (const QIcon &icon) |
void | setModel (PropertyTreeModel *model) |
void | setParent (Property *new_parent) |
virtual void | setReadOnly (bool read_only) |
void | setShouldBeSaved (bool save) |
virtual bool | setValue (const QVariant &new_value) |
bool | shouldBeSaved () const |
void | show () |
virtual Property * | subProp (const QString &sub_name) |
Property * | takeChild (Property *child) |
virtual Property * | takeChildAt (int index) |
~Property () override | |
Protected Slots | |
virtual void | changedAttachedBodyColor () |
Protected Member Functions | |
void | calculateOffsetPosition () |
Set the scene node's position, given the target frame and the planning frame. More... | |
virtual void | clearRobotModel () |
virtual planning_scene_monitor::PlanningSceneMonitorPtr | createPlanningSceneMonitor () |
void | executeMainLoopJobs () |
void | fixedFrameChanged () override |
void | loadRobotModel () |
void | onDisable () override |
void | onEnable () override |
void | onInitialize () override |
virtual void | onNewPlanningSceneState () |
This is called upon successful retrieval of the (initial) planning scene state. More... | |
virtual void | onRobotModelLoaded () |
This is an event called by loadRobotModel() in the MainLoop; do not call directly. More... | |
virtual void | onSceneMonitorReceivedUpdate (planning_scene_monitor::PlanningSceneMonitor::SceneUpdateType update_type) |
void | renderPlanningScene () |
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) |
![]() | |
virtual void | clearStatuses () |
bool | initialized () const |
![]() | |
void | loadValue (const Config &config) |
Private Slots | |
void | changedMoveGroupNS () |
void | changedOctreeRendering () |
void | changedPlanningSceneTopic () |
void | changedRobotDescription () |
void | changedRobotSceneAlpha () |
void | changedSceneAlpha () |
void | changedSceneColor () |
void | changedSceneDisplayTime () |
void | changedSceneEnabled () |
void | changedSceneName () |
void | changedSceneRobotCollisionEnabled () |
void | changedSceneRobotVisualEnabled () |
void | setSceneName (const QString &name) |
Additional Inherited Members | |
![]() | |
virtual void | onEnableChanged () |
void | queueRender () |
void | setEnabled (bool enabled) |
void | setIcon (const QIcon &icon) override |
![]() | |
bool | setBool (bool value) |
![]() | |
void | timeSignal (ros::Time time, QPrivateSignal) |
![]() | |
void | aboutToChange () |
void | changed () |
void | childListChanged (Property *this_property) |
Definition at line 67 of file planning_scene_display.h.
moveit_rviz_plugin::PlanningSceneDisplay::PlanningSceneDisplay | ( | bool | listen_to_planning_scene = true , |
bool | show_scene_robot = true |
||
) |
Definition at line 101 of file planning_scene_display.cpp.
|
override |
Definition at line 199 of file planning_scene_display.cpp.
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 255 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 265 of file planning_scene_display.cpp.
|
protected |
Set the scene node's position, given the target frame and the planning frame.
Definition at line 702 of file planning_scene_display.cpp.
|
protectedvirtualslot |
Definition at line 338 of file planning_scene_display.cpp.
|
privateslot |
Definition at line 348 of file planning_scene_display.cpp.
|
privateslot |
Definition at line 433 of file planning_scene_display.cpp.
|
privateslot |
Definition at line 411 of file planning_scene_display.cpp.
|
privateslot |
Definition at line 354 of file planning_scene_display.cpp.
|
privateslot |
Definition at line 402 of file planning_scene_display.cpp.
|
privateslot |
Definition at line 397 of file planning_scene_display.cpp.
|
privateslot |
Definition at line 343 of file planning_scene_display.cpp.
|
privateslot |
Definition at line 429 of file planning_scene_display.cpp.
|
privateslot |
Definition at line 458 of file planning_scene_display.cpp.
|
privateslot |
Definition at line 360 of file planning_scene_display.cpp.
|
privateslot |
Definition at line 448 of file planning_scene_display.cpp.
|
privateslot |
Definition at line 438 of file planning_scene_display.cpp.
void moveit_rviz_plugin::PlanningSceneDisplay::clearJobs | ( | ) |
remove all queued jobs
Definition at line 210 of file planning_scene_display.cpp.
|
protectedvirtual |
This function is used by loadRobotModel() and should only be called in the MainLoop You probably should not call this function directly
Reimplemented in moveit_rviz_plugin::MotionPlanningDisplay.
Definition at line 546 of file planning_scene_display.cpp.
|
protectedvirtual |
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 535 of file planning_scene_display.cpp.
|
protected |
Definition at line 278 of file planning_scene_display.cpp.
|
overrideprotectedvirtual |
Reimplemented from rviz::Display.
Definition at line 716 of file planning_scene_display.cpp.
const std::string moveit_rviz_plugin::PlanningSceneDisplay::getMoveGroupNS | ( | ) | const |
Definition at line 305 of file planning_scene_display.cpp.
const planning_scene_monitor::PlanningSceneMonitorPtr & moveit_rviz_plugin::PlanningSceneDisplay::getPlanningSceneMonitor | ( | ) |
Definition at line 300 of file planning_scene_display.cpp.
planning_scene_monitor::LockedPlanningSceneRO moveit_rviz_plugin::PlanningSceneDisplay::getPlanningSceneRO | ( | ) | const |
get read-only access to planning scene
Definition at line 328 of file planning_scene_display.cpp.
planning_scene_monitor::LockedPlanningSceneRW moveit_rviz_plugin::PlanningSceneDisplay::getPlanningSceneRW | ( | ) |
get write access to planning scene
Definition at line 333 of file planning_scene_display.cpp.
const moveit::core::RobotModelConstPtr & moveit_rviz_plugin::PlanningSceneDisplay::getRobotModel | ( | ) | const |
Definition at line 310 of file planning_scene_display.cpp.
|
overridevirtual |
Reimplemented from rviz::Display.
Definition at line 689 of file planning_scene_display.cpp.
|
protected |
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 553 of file planning_scene_display.cpp.
|
overrideprotectedvirtual |
Reimplemented from rviz::Display.
Definition at line 645 of file planning_scene_display.cpp.
|
overrideprotectedvirtual |
Reimplemented from rviz::Display.
Definition at line 623 of file planning_scene_display.cpp.
|
overrideprotectedvirtual |
Reimplemented from rviz::Display.
Definition at line 219 of file planning_scene_display.cpp.
|
protectedvirtual |
This is called upon successful retrieval of the (initial) planning scene state.
Reimplemented in moveit_rviz_plugin::MotionPlanningDisplay.
Definition at line 605 of file planning_scene_display.cpp.
|
protectedvirtual |
This is an event called by loadRobotModel() in the MainLoop; do not call directly.
Reimplemented in moveit_rviz_plugin::MotionPlanningDisplay.
Definition at line 583 of file planning_scene_display.cpp.
|
protectedvirtual |
Reimplemented in moveit_rviz_plugin::MotionPlanningDisplay.
Definition at line 609 of file planning_scene_display.cpp.
void moveit_rviz_plugin::PlanningSceneDisplay::queueRenderSceneGeometry | ( | ) |
Definition at line 658 of file planning_scene_display.cpp.
|
protected |
Definition at line 367 of file planning_scene_display.cpp.
|
overridevirtual |
Reimplemented from rviz::Display.
Definition at line 238 of file planning_scene_display.cpp.
|
overridevirtual |
Reimplemented from rviz::Display.
Definition at line 694 of file planning_scene_display.cpp.
|
protected |
Definition at line 464 of file planning_scene_display.cpp.
void moveit_rviz_plugin::PlanningSceneDisplay::setLinkColor | ( | const std::string & | link_name, |
const QColor & | color | ||
) |
Definition at line 502 of file planning_scene_display.cpp.
|
protected |
Definition at line 514 of file planning_scene_display.cpp.
|
privateslot |
Definition at line 618 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 260 of file planning_scene_display.cpp.
|
protected |
Definition at line 478 of file planning_scene_display.cpp.
|
protected |
Definition at line 488 of file planning_scene_display.cpp.
void moveit_rviz_plugin::PlanningSceneDisplay::unsetLinkColor | ( | const std::string & | link_name | ) |
Definition at line 508 of file planning_scene_display.cpp.
|
protected |
Definition at line 523 of file planning_scene_display.cpp.
|
overridevirtual |
Reimplemented from rviz::Display.
Definition at line 663 of file planning_scene_display.cpp.
|
protectedvirtual |
Reimplemented in moveit_rviz_plugin::MotionPlanningDisplay.
Definition at line 675 of file planning_scene_display.cpp.
void moveit_rviz_plugin::PlanningSceneDisplay::waitForAllMainLoopJobs | ( | ) |
Definition at line 271 of file planning_scene_display.cpp.
bool moveit_rviz_plugin::PlanningSceneDisplay::waitForCurrentRobotState | ( | const ros::Time & | t = ros::Time::now() | ) |
wait for robot state more recent than t
Definition at line 321 of file planning_scene_display.cpp.
|
protected |
Definition at line 211 of file planning_scene_display.h.
|
protected |
Definition at line 181 of file planning_scene_display.h.
|
protected |
Definition at line 196 of file planning_scene_display.h.
|
protected |
Definition at line 182 of file planning_scene_display.h.
|
protected |
Definition at line 184 of file planning_scene_display.h.
|
protected |
Definition at line 183 of file planning_scene_display.h.
|
protected |
Definition at line 201 of file planning_scene_display.h.
|
protected |
Definition at line 214 of file planning_scene_display.h.
|
protected |
Definition at line 213 of file planning_scene_display.h.
|
protected |
Definition at line 178 of file planning_scene_display.h.
|
protected |
Definition at line 193 of file planning_scene_display.h.
|
protected |
displays planning scene with everything in it
Definition at line 186 of file planning_scene_display.h.
|
protected |
Definition at line 190 of file planning_scene_display.h.
|
protected |
Definition at line 189 of file planning_scene_display.h.
|
protected |
Definition at line 207 of file planning_scene_display.h.
|
protected |
Definition at line 208 of file planning_scene_display.h.
|
protected |
Definition at line 199 of file planning_scene_display.h.
|
protected |
Definition at line 202 of file planning_scene_display.h.
|
protected |
Definition at line 179 of file planning_scene_display.h.
|
protected |
Definition at line 195 of file planning_scene_display.h.
|
protected |
Definition at line 209 of file planning_scene_display.h.
|
protected |
Definition at line 198 of file planning_scene_display.h.
|
protected |
Definition at line 210 of file planning_scene_display.h.
|
protected |
Definition at line 212 of file planning_scene_display.h.
|
protected |
Definition at line 204 of file planning_scene_display.h.
|
protected |
Definition at line 203 of file planning_scene_display.h.
|
protected |
Definition at line 206 of file planning_scene_display.h.
|
protected |
Definition at line 205 of file planning_scene_display.h.