« Return to Thread: Unexpected message type [4]

Unexpected message type [4]

by Benjamin Renoust(Student) :: Rate this Message:

| View in Thread

Hi!

I always encounter these messages when I just READ a pose structure :

playerc warning   : warning : unexpected message type [4]
An error occured while reading server messages

My code is the the following :

int bumper::getPosition()
{
  if(bumperP)
    {
      player_bumper_define_t pose;
      bumperP->RequestBumperConfig();
      pose = bumperP->GetPose((int)bumper::index);
           
      this->length = pose.length;
      this->radius = pose.radius;    
      this->x = pose.pose.px;
      this->y = pose.pose.py;
      this->a = pose.pose.pa;
     
      return 0;
    }
  return 1;
}

If I comment the last part (this->smthing = pose.smthing;) I don't have this probleme!
The error happens just while reading my pose var !
However the bumper proxy methods seem to work well.

I have also the same kind of problem accessing to the sonar proxy pose.

 « Return to Thread: Unexpected message type [4]