79 void load(
const rviz_common::Config& config)
override;
80 void save(rviz_common::Config config)
const override;
82 void update(
float wall_dt,
float ros_dt)
override;
83 void reset()
override;
85 void setLinkColor(
const std::string& link_name,
const QColor& color);
86 void unsetLinkColor(
const std::string& link_name);
88 void queueRenderSceneGeometry();
92 void addBackgroundJob(
const std::function<
void()>& job,
const std::string& name);
98 void spawnBackgroundJob(
const std::function<
void()>& job);
101 void addMainLoopJob(
const std::function<
void()>& job);
103 void waitForAllMainLoopJobs();
108 const std::string getMoveGroupNS()
const;
109 const moveit::core::RobotModelConstPtr& getRobotModel()
const;
112 bool waitForCurrentRobotState(
const rclcpp::Time& t);
117 const planning_scene_monitor::PlanningSceneMonitorPtr& getPlanningSceneMonitor();
124 void changedMoveGroupNS();
125 void changedRobotDescription();
126 void changedSceneName();
127 void changedSceneEnabled();
128 void changedSceneRobotVisualEnabled();
129 void changedSceneRobotCollisionEnabled();
130 void changedRobotSceneAlpha();
131 void changedSceneAlpha();
132 void changedSceneColor();
133 void changedPlanningSceneTopic();
134 void changedSceneDisplayTime();
135 void changedOctreeRenderMode();
136 void changedOctreeColorMode();
137 void setSceneName(
const QString& name);
140 virtual void changedAttachedBodyColor();
145 void loadRobotModel();
149 virtual void clearRobotModel();
153 virtual planning_scene_monitor::PlanningSceneMonitorPtr createPlanningSceneMonitor();
156 virtual void onRobotModelLoaded();
158 virtual void onNewPlanningSceneState();
163 void calculateOffsetPosition();
165 void executeMainLoopJobs();
167 void renderPlanningScene();
168 void setLinkColor(rviz_default_plugins::robot::Robot* robot,
const std::string& link_name,
const QColor& color);
169 void unsetLinkColor(rviz_default_plugins::robot::Robot* robot,
const std::string& link_name);
170 void setGroupColor(rviz_default_plugins::robot::Robot* robot,
const std::string& group_name,
const QColor& color);
171 void unsetGroupColor(rviz_default_plugins::robot::Robot* robot,
const std::string& group_name);
172 void unsetAllColors(rviz_default_plugins::robot::Robot* robot);
175 void onInitialize()
override;
176 void onEnable()
override;
177 void onDisable()
override;
178 void fixedFrameChanged()
override;
181 virtual void updateInternal(
double wall_dt,
double ros_dt);