From: JanStevens <jan...@gm...> - 2013-02-07 12:48:24
|
I've solved my problem. I never really copied the result of my range scan. The solution is simply: // Allocate the memory for the array data.ranges = new double[range.size()]; // copy the vector to the array memcpy(data.ranges, &range[0], sizeof(double)*range.size()); // Clear the vector range.clear(); Now I get good results, playerv still wont work (segment fault). Thanks for your help, kind regards ----- My Blog: http://www.fritz-hut.com -- View this message in context: http://player-stage-gazebo.10965.n7.nabble.com/Ranger-Interface-messes-up-my-data-from-driver-tp18576p18581.html Sent from the playerstage-users mailing list archive at Nabble.com. |