5 #include "geometry_msgs/Twist.h" 7 int main(
int argc,
char **argv)
39 for(
int i=0;i<40;i++){
40 geometry_msgs::Twist
msg;
41 msg.linear.x = i*0.01;
42 msg.angular.z = i*0.01;
int main(int argc, char **argv)
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)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
ROSCPP_DECL void spinOnce()