How to make a geometry_msgs/PoseArray?
I understand what a PoseArray is but I'm having a tough time trying to implement in roscpp.
There aren't many examples on how to code and use it and as a beginner it's really tough for me to figure it out using the documentation.
If anyone can guide me to an example or even write a small example, that would be great.
So, what is your question exactly? Do you have a problem with the contents or the coding?
@mgruhler Good example that should answer OP's question, I just wanted to notify you that you declared p as a
Pose
but used it as aPoseStamped
.@Delb, thanks. good catch, old habits die hard (I almost never use Poses/Posearrays :-) ). As I couldn't edit the above comment, here is the corrected example:
This question and its answer (ROS1) could help you with implementing publish/subscribe of arrays.