reference frame for gazebo_ros_bumper

asked 2014-05-01 01:47:41 -0500

peshala gravatar image

Hi all,

Why the following part commented out in gazebo_ros_bumper.cpp

  /*
  if (myFrame)
  {
    frame_pose = myFrame->GetWorldPose();  //-this->myBody->GetCoMPose();
    frame_pos = frame_pose.pos;
    frame_rot = frame_pose.rot;
  }
  else
  */
  {
    // no specific frames specified, use identity pose, keeping
    // relative frame at inertial origin
    frame_pos = math::Vector3(0, 0, 0);
    frame_rot = math::Quaternion(1, 0, 0, 0);  // gazebo u,x,y,z == identity
    frame_pose = math::Pose(frame_pos, frame_rot);
   }

So, it seems we always use the world frame.

Some discussion on this was found here but it does not answer my question.

Thanks in advance

edit retag flag offensive close merge delete

Comments

@nkoenig is this done to reduce to computational cost?

peshala gravatar imagepeshala ( 2014-05-08 01:19:56 -0500 )edit