Rosserial PoseArray crashes when more than 8 poses are used?
Hey there, i am using rosserial on windows to send poseArray data through a ubuntu pc. Works fine until i want to send more than 8 poses in one array. For example when i do this
geometry_msgs::PoseArray* posArray = new geometry_msgs::PoseArray();
posArray->poses_length = 25;
geometry_msgs::Pose* helpPosArray = new geometry_msgs::Pose[25];
posArray->poses = helpPosArray;
Other values in the code are overwritten with nonsense values and the program crashes with access violation errors. It seems like the memory is filled with something big that the other values are overwritten, or the access to the memory is faulty. The overwriting only happens when i try to publish the posArray.
pub.publish(posArray);
When i dont publish or when i change the length to:
posArray->poses_length = 8;
Everything works fine. Is the rosserial server limitated so that only 8 pose values are possible for one publisher? It would help me a lot if you have answers :)
Greetings