Ask Your Question
1

robot_state_publisher, for gazebo only or for actual robot?

asked 2015-08-20 15:52:52 -0500

kuku123 gravatar image

Hi all

The robot_state_publisher publishes transform (which is usually based on the URDF file specified). But when we are talking about the URDF file, we are usually talking about Gazebo, which is for simulation.

Ok. But if I want to do ACTUAL physical robot, do I still need to use robot_state_publisher to publishes transform? I am confused. If robot_state_publisher still publishes transform, what happen to the PHYSICAL base driver of the robot? From what I know, the base driver publishes odometry and transform as well. I am very confused.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2015-08-21 01:48:11 -0500

Akif gravatar image

URDF is not only for Gazebo, or just for simulation purposes. URDF defines your robot's physical dimensions, joints, constraints etc. Therefore robot_state_publisher publishes states of your link in your robot, not necessarily in simulation. For example, also for actual robot, it publishes tf data between your base_link and laser sensor link (like base_laser_link) using distances defined in URDF. You do not need to publish them separately by writing some nodes.

For joint states, if you can publish the states of your joints to joint_states topic, it can also publish those, not only static link distances.

edit flag offensive delete link more
0

answered 2015-08-20 16:55:13 -0500

URDF is used by both to enable calculations to be performed.

http://wiki.ros.org/robot_state_publi...

'This package allows you to publish the state of a robot to tf. Once the state gets published, it is available to all components in the system that also use tf. The package takes the joint angles of the robot as input and publishes the 3D poses of the robot links, using a kinematic tree model of the robot.'

In simulation this is done using data generated by gazebo, for the real robot from data generated by sensors

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: 2015-08-20 15:52:52 -0500

Seen: 631 times

Last updated: Aug 21 '15