2 #include "sensor_msgs/Range.h" 3 #include "std_msgs/Header.h" 8 int main(
int argc,
char **argv)
10 ros::init(argc, argv,
"talkerUltraSound");
18 sensor_msgs::Range msg;
21 header.frame_id =
"/ultrasound";
23 msg.field_of_view = 1;
void publish(const boost::shared_ptr< M > &message) const
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
std_msgs::Header * header(M &m)
int main(int argc, char **argv)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)