ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

It's likely that you are trying to print the contents of the list.flow_message[0] before any data has been inserted into the vector. You should verify that the list.flow_message has contents before attempting to print.

You could use std::vector::empty or std::vector::size