Search the web
Sign In
New User? Sign Up
webots-users · Webots Users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Question about gps_matrix and gps_euler   Message List  
Reply | Forward Message #3168 of 3400 |
Re: [webots-users] Question about gps_matrix and gps_euler

Hi Yongjin,

First of all, wb_supervisor_get_sf_rotation (documented here) is effectively a function of the supervisor and so it is not usable from an EDU version. This function is used to get the current orientation relatively to the parent node of the given node (here, the GPS solid).

The old GPS was overkilled because it gave information that none of any real device can return (both the position and the exact orientation). As the policy of the new API is to render accessible the non realistic only from the supervisor, we decided to split into several more specialized devices such as the new GPS and the Compass which allows the same abilities than the old GPS. Basically, if you need:
  • the position of your robot, use the new GPS device with the wb_gps_get_values function
  • the orientation of your robot according to the north, use the Compass device with the wb_compass_get_values function
The orientation given by the old GPS matrix was a little more powerful than the one given by the compass, i.e., getting the orientation along the Compass-North axis is no more possible with the new API unless to use 2 perpendicular compasses. So the euler matrix is no more directly available but must be computed by yourself if needed.

I hope this is clear enough!?
Regards,
Fabien


2009/7/7 <yl3908@...>
Hi,


I was converting some code written in webots5 to webots6. the code invole two method gps_get_matrix() and
gps_euler().

From the file giving online said that
The rotation of an object must now be estimated either by using the new Compass device, or with the new
wb_supervisor_field_get_sf_rotation() function.

Webots 5 (deprecated) Webots 6
gps_get_matrix() wb_compass_get_values()
gps_euler() wb_supervisor_field_get_sf_rotation()

I have replace the gps_get_matrix() method by wb_compass_get_values(). But I cann't found the method wb_supervisor_field_get_sf_rotation() in the API. It seem that this method are in the supervisor class. but I am using education license. Is that mean I can not replace the gps_euler() method? What I can do then?

Regards

Yongjin

.




Tue Jul 7, 2009 4:05 pm

fabien.rohrer
Offline Offline
Send Email Send Email

Forward
Message #3168 of 3400 |
Expand Messages Author Sort by Date

Hi, I was converting some code written in webots5 to webots6. the code invole two method gps_get_matrix() and gps_euler(). From the file giving online said...
yl3908@...
Send Email
Jul 7, 2009
2:29 pm

Hi Yongjin, First of all, *wb_supervisor_get_sf_rotation* (documented ...
Fabien Rohrer
fabien.rohrer
Offline Send Email
Jul 7, 2009
4:05 pm

Thank you for the help. according to what you said, i need to computed the euler matrix by myself. could any one tell me what is euler matrix and how to...
Yongjin Liang
yl3908@...
Send Email
Jul 8, 2009
11:50 am

Hello Yongjin, What you guys call a "euler matrix" is actually a "rotation matrix" or "DCM matrix" (Direction Cosine Matrix). See there. ...
Yvan Bourquin
yvanix
Offline Send Email
Jul 8, 2009
1:13 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help