Ask Your Question
1

About /world frame

asked 2012-02-06 07:27:34 -0500

alfa_80 gravatar image

I would like to know about /world frame. Is it something to be explicitly defined or is it there automatically in our c++ code?

My assumption is that /world frame is supposed to be a fixed frame(if we want to see our robot moving) and the position of it is always (0,0,0), if it is a fixed frame. Is this kind of understanding true?

Thanks in advance.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
7

answered 2012-02-06 07:32:32 -0500

DimitriProsser gravatar image

"/world" frame is typically used to represent absolute positions in the world. It has no parent, so its value is always (0, 0, 0).

(0, 0, 0) in the world frame represents the intersection of the Prime Meridian and the Equator at sea level in outdoor applications, but could represent the southwest corner of a building on the 1st floor, or any other fixed point.

The world frame is your permanent frame. It is the frame against which all other frames are measured. If you're only working inside of a building, your world frame should be a fixed point in that building. If your robot can go anywhere in the world, maybe your world frame should be the world frame I mentioned above.

edit flag offensive delete link more

Comments

You've mentioned "It has no parent..", but, can I set as something like this [tfb.sendTransform(tf::StampedTransform(xform, pose3D_LDD.header.stamp, "/world", "/base_link"));], in which the world is the parent of the base_link?
alfa_80 gravatar imagealfa_80 ( 2012-02-06 07:38:11 -0500 )edit
Yes, that would mean that base_link is at x, y, z with respect to the world
DimitriProsser gravatar imageDimitriProsser ( 2012-02-06 08:01:44 -0500 )edit
But then, /base_link is the parent in this case because the last parameter is the parent frame. You've said that /world has no parent. Sorry, for being a little bit confused on this.
alfa_80 gravatar imagealfa_80 ( 2012-02-06 08:42:55 -0500 )edit
1

Actually, the last parameter in StampedTransform() is the child frame.

http://docs.ros.org/indigo/api/tf/htm...

kwiesz91 gravatar imagekwiesz91 ( 2015-08-02 17:08:20 -0500 )edit

@DimitriProsser Is the world frame a pre-defined coordinate system by tf?

TouchDeeper gravatar imageTouchDeeper ( 2019-09-26 05:18:45 -0500 )edit
2

answered 2012-02-06 09:31:02 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

There are no frame_ids with special names and meanings in the code. The use of all frame_ids are done using conventions. Currently for navigation one convention is written down in REP 105 which also has some background on why to choose the convention.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-02-06 07:27:34 -0500

Seen: 3,846 times

Last updated: Feb 06 '12