39 #include <rviz_common/display.hpp>
44 #include <moveit_msgs/msg/display_robot_state.hpp>
45 #include <rclcpp/rclcpp.hpp>
56 class RosTopicProperty;
63 class RobotStateVisualization;
73 void load(
const rviz_common::Config& config)
override;
74 void update(
float wall_dt,
float ros_dt)
override;
75 void reset()
override;
82 void setLinkColor(
const std::string& link_name,
const QColor& color);
93 void changedRobotDescription();
94 void changedRootLinkName();
95 void changedRobotSceneAlpha();
96 void changedAttachedBodyColor();
97 void changedRobotStateTopic();
98 void changedEnableLinkHighlight();
99 void changedEnableVisualVisible();
100 void changedEnableCollisionVisible();
101 void changedAllLinks();
112 void setLinkColor(rviz_default_plugins::robot::Robot*
robot,
const std::string& link_name,
const QColor& color);
113 void unsetLinkColor(rviz_default_plugins::robot::Robot*
robot,
const std::string& link_name);
117 void setRobotHighlights(
const moveit_msgs::msg::DisplayRobotState::_highlight_links_type& highlight_links);
118 void setHighlight(
const std::string& link_name,
const std_msgs::msg::ColorRGBA& color);
rviz_common::properties::RosTopicProperty * robot_state_topic_property_
RobotStateVisualizationPtr robot_
void load(const rviz_common::Config &config) override
moveit::core::RobotModelConstPtr robot_model_
void setHighlight(const std::string &link_name, const std_msgs::msg::ColorRGBA &color)
~RobotStateDisplay() override
void update(float wall_dt, float ros_dt) override
void setRobotHighlights(const moveit_msgs::msg::DisplayRobotState::_highlight_links_type &highlight_links)
rviz_common::properties::FloatProperty * robot_alpha_property_
rviz_common::properties::ColorProperty * attached_body_color_property_
rviz_common::properties::StringProperty * root_link_name_property_
rclcpp::Subscription< moveit_msgs::msg::DisplayRobotState >::SharedPtr robot_state_subscriber_
void unsetHighlight(const std::string &link_name)
rclcpp::Node::SharedPtr node_
rviz_common::properties::BoolProperty * enable_visual_visible_
void fixedFrameChanged() override
void calculateOffsetPosition()
Set the scene node's position, given the target frame and the planning frame.
void setVisible(bool visible)
void onInitialize() override
void unsetLinkColor(const std::string &link_name)
void newRobotStateCallback(const moveit_msgs::msg::DisplayRobotState::ConstSharedPtr &state)
rviz_common::properties::BoolProperty * enable_link_highlight_
rviz_common::properties::BoolProperty * enable_collision_visible_
rviz_common::properties::BoolProperty * show_all_links_
rviz_common::properties::StringProperty * robot_description_property_
rdf_loader::RDFLoaderPtr rdf_loader_
void setLinkColor(const std::string &link_name, const QColor &color)
std::map< std::string, std_msgs::msg::ColorRGBA > highlights_
moveit::core::RobotStatePtr robot_state_
const moveit::core::RobotModelConstPtr & getRobotModel() const
void onDisable() override