18 #ifndef VMRC_GAZEBO_GAZEBO_ROS_COLOR_HH_ 19 #define VMRC_GAZEBO_GAZEBO_ROS_COLOR_HH_ 22 #include <std_msgs/ColorRGBA.h> 23 #include <gazebo/common/Plugin.hh> 24 #include <gazebo/rendering/Visual.hh> 40 public:
void Load(gazebo::rendering::VisualPtr _parent,
41 sdf::ElementPtr _sdf);
44 private: gazebo::rendering::VisualPtr
visual =
nullptr;
ros::Subscriber colorSub
Subscriber to accept color change requests.
void ColorCallback(const std_msgs::ColorRGBAConstPtr &_msg)
gazebo::rendering::VisualPtr visual
Pointer to the visual element to modify.
Visual plugin for changing the color of some visual elements using ROS messages. This plugin accepts ...
void Load(gazebo::rendering::VisualPtr _parent, sdf::ElementPtr _sdf)
ros::NodeHandle nh
ROS Node handle.