41 const std::string& frame_id_prefix,
bool left)
42 : frame_id(frame_id_prefix +
"camera")
48 pub = nh.
advertise<rc_common_msgs::CameraParam>(
"left/camera_param", 1);
52 pub = nh.
advertise<rc_common_msgs::CameraParam>(
"right/camera_param", 1);
66 const uint64_t freq = 1000000000ul;
72 params.header.stamp.sec = time / freq;
73 params.header.stamp.nsec = time - freq * params.header.stamp.sec;
void publish(const rcg::Buffer *buffer, const rc_common_msgs::CameraParam ¶ms, uint64_t pixelformat)
void publish(const boost::shared_ptr< M > &message) const
CameraParamPublisher(ros::NodeHandle &nh, const std::string &frame_id_prefix, bool left)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
uint64_t getTimestampNS() const
uint32_t getNumSubscribers() const