Ask Your Question
0

Problem setting fixed frame in Rviz.

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

lakshmen gravatar image

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

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

ROS_ROOT=/opt/ros/diamondback/ros
ROS_PACKAGE_PATH=/opt/ros/diamondback/stacks:/home/user/workspace
ROS_MASTER_URI=http://localhost:11311
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

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

dornhege gravatar image

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

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

Comments

1
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 imagelakshmen ( 2011-07-05 13:24:55 -0500 )edit
thanks for your help... really appreciate it...
lakshmen gravatar imagelakshmen ( 2011-07-05 13:30:56 -0500 )edit
Regarding the testing by typing the frame you are sending in the fixed_frame of rviz, it didnt work as well.
lakshmen gravatar imagelakshmen ( 2011-07-05 13:36:45 -0500 )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 imagedornhege ( 2011-07-05 22:21:38 -0500 )edit
1

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

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

Comments

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 imagelakshmen ( 2011-07-05 18:42:12 -0500 )edit
could you post the output of the env variables?
KoenBuys gravatar imageKoenBuys ( 2011-07-05 21:35:23 -0500 )edit
i posted the output...
lakshmen gravatar imagelakshmen ( 2011-07-07 06:37:41 -0500 )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

Stats

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

Seen: 6,171 times

Last updated: Jul 07 '11