ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

How to change the height of the Kinect mounted in turtlebot simulator

asked 2012-07-17 07:30:17 -0500

karthik gravatar image


(ROS - Electric; Ubuntu 11.10)

I am using Gazebo to simulate turtlebot. How to change the height of the kinect mounted in turtlebot simulator. I need to increase the height of the kinect mount point in the turtlebot simulator so as to view the table tops of my environment. I am checking the turtlebot_description package which has the turtlebot.urdf.xacro file which loads all the meshes of the robot for the display. I have following questions

a) How to modify the urdf files to increase the height?

b) Does this change by itself change the height of the tf frame of the kinect so that i get the cloud from different height?

Any pointers/suggestions are appreciated!!!

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2012-07-17 10:44:07 -0500

updated 2012-07-17 10:45:02 -0500

You could just change the "turtlebot_calib_cam_z" parameter in the turtlebot_calibration.xacro file of turtlebot_description. If you installed from .debs you'll risk losing your changes on an update though, so the recommended way is to copy the parts you need to your own package and change them there.

The changes in your URDF will directly affect also the tf tree (because it is created based on the URDF model), so it should directly work.

edit flag offensive delete link more


thanks Stefan.. :)

karthik gravatar image karthik  ( 2012-07-17 18:02:57 -0500 )edit

answered 2015-03-19 04:20:26 -0500

JollyGood gravatar image

For Indigo, you need to modify the following file or related file /opt/ros/indigo/share/turtlebot_description/urdf/turtlebot_properties.urdf.xacro

You can find the following lines in the file: <property name="cam_px" value="-0.087"/> <property name="cam_py" value="-0.0125"/> <property name="cam_pz" value="0.2870"/> <property name="cam_or" value="0"/> <property name="cam_op" value="0"/> <property name="cam_oy" value="0"/>

If you want use a different sensor like asus_xtion_pro, you may directly modify the following file: /opt/ros/indigo/share/turtlebot_description/urdf/sensors/asus_xtion_pro.urdf.xacro

edit flag offensive delete link more

answered 2012-07-17 15:36:20 -0500

In addition to Stefan's post, you might want to check out this video from ROSCon that talks about URDF. It's a great intro video.

edit flag offensive delete link more


Thanks doughbot01 ... it helps!!!

karthik gravatar image karthik  ( 2012-07-17 18:03:31 -0500 )edit

Question Tools

1 follower


Asked: 2012-07-17 07:30:17 -0500

Seen: 1,163 times

Last updated: Mar 19 '15