ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
2 | No.2 Revision |
Mapping with Sonar Data? - ROS Answers
Alright, I'm editing my answer too.
Use:
ros::Publisher pub_scan;
pub_scan = nh.advertise<sensor_msgs::LaserScan> ("/scan", 100);
And related to this error: array bound is not an integer constant before ‘]’ token
, The size of an array must be a constant known at compile-time:
Use:
#define NUM_READINGS 20