Re: Can't publish laser data
aneves <[email protected]>
| Newsgroups | gmane.science.robotics.playerstage |
|---|---|
| Message-ID | <[email protected]> |
hi Chris, Thanks for your reply. Chris Chambers-3 wrote: > > Are you meaning to look at "Lintensity1[i]" for i=3, 4 and 5, rather than > "Lintensity1[i-data.ranges_count/2]" instead (to get 0 1 and 2 indices)? > > That part of the code is right. This driver is to gather the two lasers into one where the right side is the right side of the first laser and the left side is the left side of 2nd laser. (I don't think this kind of driver serves any porpose, is just a "hello world". So, the second for should star at the middle of the count and go from there. Anyway, I've just found the solution.:jumping: As I suspected, the Publish function was wrong. I didn't put the sizeof (data) that I want to publish so it wouldn't publish nothing... the solution is a Publish like this: this->Publish(this->laser2ID, NULL, PLAYER_MSGTYPE_DATA, PLAYER_LASER_DATA_SCAN, (void*)&data, size of (data) , &time); In all the examples I've seen it was always 0(zero) on that parameter and I still don't know why... Thanks for your reply, andré -- View this message in context: http://old.nabble.com/Can%27t-publish-laser-data-tp28793169p28813011.html Sent from the playerstage-developers mailing list archive at Nabble.com. ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Playerstage-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/playerstage-developers