ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Usually, segfaults happen where you derererence an invalid pointer, or use an invalid array index.
In your case, you're not checking the bounds of range_msgs in publish_range_msg.