Ask Your Question

Problem setting fixed frame in Rviz.

asked 2011-07-04 17:33:25 -0600

lakshmen gravatar image

updated 2011-07-07 06:19:17 -0600

I am already able to publish the data, in the sense that when i type the rostopic hz -> i get the topic that i am publishing. But have difficulty visualizing the data and moreover, i can't select anything under fixed frame and target frame.there is a global warning saying that is no tf data and that Fixed Frame does not exist. I now know i need to have to a launch file that converts static_transform_publisher from /world to /kinect_depth and set the fixed frame to /kinect_depth.

1)i am not sure where to add this file to?

2) there is a statement args = " 0 0 1.10 -1.57 0 -1.57 /world /kinect_rgb 10" what does the 10 stand for and what are the other values(such as 0, 1.1) for?

having those two questions answered, i got a few more to ask( i apologise if the qns are wrong)..

3) what should i type to launch the kinect_camera. is it roslaunch kinect_camera kinect_with_tf.launch? if so, it is wrong to type roscore only? 4) must u have always have a launch file? can u work without a launch file?

5)is better to use tf::transformbroadcaster or it is better to use just launch file?

Please pardon me for the qns.. i am newbie in ROS, point cloud. Any help would be much appreciated.. thanks...

for env | grep ROS i get

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2011-07-05 01:26:05 -0600

dornhege gravatar image

updated 2011-07-05 01:26:52 -0600

If there is no /tf information, you can for testing just type the frame you are sending in the fixed_frame of rviz.

1) To a launch file that also launches the kinect driver.

2) the 10 is the publishing frequency. The other numbers are: x y z roll pitch yaw. (If you pass 4 parameters for rotation it is interpreted as a quaternion)

edit flag offensive delete link more


just like to ask something else. i face the global warning of no tf data. Am i right to say there are two ways to solve this problem? One is using the launch file while the other is the tf/transform..
lakshmen gravatar image lakshmen  ( 2011-07-05 13:24:55 -0600 )edit
thanks for your help... really appreciate it...
lakshmen gravatar image lakshmen  ( 2011-07-05 13:30:56 -0600 )edit
Regarding the testing by typing the frame you are sending in the fixed_frame of rviz, it didnt work as well.
lakshmen gravatar image lakshmen  ( 2011-07-05 13:36:45 -0600 )edit
It is normal to get a "no tf" warning, if you are not publishing tf. You will need to publish tf, e.g. with the static publisher to have tf data. TF data only comes from tf publishers, roslaunch is something totally different.
dornhege gravatar image dornhege  ( 2011-07-05 22:21:38 -0600 )edit

answered 2011-07-05 17:27:17 -0600

KoenBuys gravatar image

Does your RVIZ start in a terminal with the correct environment variables?

$env | grep ROS

should tell you how they are set in that terminal. What's the output file of

$rosrun tf view_frames

Sometimes I have to click on a different field first and wait before I can select the fixed frame.

edit flag offensive delete link more


thanks for replying... when i type tf view_frames, i get" no tf data received". and the environment variables seems to be ok.
lakshmen gravatar image lakshmen  ( 2011-07-05 18:42:12 -0600 )edit
could you post the output of the env variables?
KoenBuys gravatar image KoenBuys  ( 2011-07-05 21:35:23 -0600 )edit
i posted the output...
lakshmen gravatar image lakshmen  ( 2011-07-07 06:37:41 -0600 )edit

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


Asked: 2011-07-04 17:33:25 -0600

Seen: 6,422 times

Last updated: Jul 07 '11