Home | Tutorials | Wiki | Issues
Ask Your Question
0

error _x is not a member of gazebo::math::Pose

asked 2016-02-28 10:59:40 -0500

meha gravatar image

Hi, I am using the following : math::Pose A = this->model->GetWorldPose(); while(A._x!= pointB[0] && A._y!=pointB[1] && A._z!=pointC[2]) do something

on compiling i am getting the error, ‘class gazebo::math::Pose’ has no member named ‘_x’ ‘class gazebo::math::Pose’ has no member named ‘_y’ ‘class gazebo::math::Pose’ has no member named ‘_z’

But the API[1] does show _x _y and _z as double members of math::Pose.

[1]http://osrf-distributions.s3.amazonaws.com/gazebo/api/7.0.0/classgazebo_1_1math_1_1Pose.html#a89b25f91820943a4d887120a7588e61f

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2016-02-29 01:36:48 -0500

Brosseau.F gravatar image

You should try to access these values with :

A.pos.x

https://osrf-distributions.s3.amazona...

https://osrf-distributions.s3.amazona...

edit flag offensive delete link more

Comments

Thanks !!!!

meha gravatar imagemeha ( 2016-02-29 09:58:34 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-02-28 10:59:40 -0500

Seen: 167 times

Last updated: Feb 29 '16