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

How can i write a tf?

asked 2014-01-21 23:01:50 -0500

programmer gravatar image

How can i write a tf? do anybody have a example of tf?

edit retag flag offensive close merge delete

Comments

1

What you mean by "write a tf"?

ZdenekM gravatar image ZdenekM  ( 2014-01-22 01:20:06 -0500 )edit

I don't know but when i want to creating a map using hector slam, it needs a tf?

programmer gravatar image programmer  ( 2014-01-22 03:10:12 -0500 )edit
1

Is your laser fixed on a robot or are you using laser alone without anything else? It would be nice to make your question more detailed - more details will lead to better answers ;)

ZdenekM gravatar image ZdenekM  ( 2014-01-22 03:29:46 -0500 )edit
1
ZdenekM gravatar image ZdenekM  ( 2014-01-22 03:35:16 -0500 )edit

Thanks for your attention dear. yes, i read tutorial but i don't understand it completely. my laser fixed on robot by two dynamixel motor (roll and pitch) to Balance it by gyro, how can i write a tf with this stuff?

programmer gravatar image programmer  ( 2014-01-22 18:58:37 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2014-01-22 19:32:02 -0500

ZdenekM gravatar image

Ok, with laser scanner fixed on two servos you need following:

  • create appropriate URDF model (including robot, those servos / joints, your laser scanner)
  • publish current angles of servos to joint_states topic (sensor_msgs/JointState)
  • run robot_state_publisher which will transform joint state to TF
  • read carefully tutorial on how to setup hector_slam on your robot

Then, there will be TF transformation between laser scanner (laser_link in the tutorial) and robot base (base_link).

edit flag offensive delete link more

Comments

Thanks for your time.

programmer gravatar image programmer  ( 2014-01-22 19:42:54 -0500 )edit
3

answered 2014-01-21 23:56:13 -0500

dornhege gravatar image

There is plenty of information and tutorials on the tf page.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-01-21 23:01:50 -0500

Seen: 355 times

Last updated: Jan 22 '14