18 #include <std_msgs/ColorRGBA.h> 19 #include <cob_light/ColorRGBAArray.h> 39 std_msgs::ColorRGBA _color;
51 std_msgs::ColorRGBA
color;
52 cob_light::ColorRGBAArray colorMsg;
53 for(
size_t i = 0; i < colors.size(); ++i)
55 color.r = colors[i].r;
56 color.g = colors[i].g;
57 color.b = colors[i].b;
58 color.a = colors[i].a;
59 colorMsg.colors.push_back(color);
void publish(const boost::shared_ptr< M > &message) const
ros::Publisher _pubSimulation
ColorOSim(ros::NodeHandle *nh)
void setColor(color::rgba color)
ros::Publisher _pubSimulationMulti
void setColorMulti(std::vector< color::rgba > &colors)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
boost::signals2::signal< void(color::rgba color)> m_sigColorSet