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

Revision history [back]

A few things. Firstly if you're getting an error can you put the exact error in your question, it would help a lot.

What you're asking the compiler to do is not well defined, and your syntax is wrong causing this problem. Are you trying to find a PoseStamped message in the list which contains the number in in any of its elements or a specific element? If so what are you actually trying to achieve because this is a rather strange operation?

the in variable is an int, so you can't 'find' it in the gothro vector because this contains geometry_msgs::PoseStamped objects which cannot be directly compared to an int.

If you can be a bit clearer about what you're trying to do here we can probably suggest a solution.