Re: Can't publish laser data

Chris Chambers <[email protected]>
Newsgroups gmane.science.robotics.playerstage
Message-ID <[email protected]>
Hi

Are you using an older version of Player? I believe that the size of the
data was deprecated in Player 2.1 and is now calculated. If you are using
player 2.0.5 or earlier I think you will need to pass the size into this
function, but most of the example you will have seen were probably written
for Player 2.1 or Player 3.

~Chris

On 8 June 2010 13:50, aneves <[email protected]> wrote:

>
> 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
>

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.