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

ROS in real world robot

asked 2019-09-19 15:45:01 -0500

Irudhaya gravatar image

updated 2022-01-22 16:10:04 -0500

Evgeny gravatar image

I have been learning ros-melodic for few months and I understood to work in the simulation world with ROS by doing a simple project on lidar based collision avoidance robot. But, in order to work in my next project, in which I have to implement ROS in a real robot. Therefore I want to know how to carry out the steps in order to implement ROS in real robot. Since, I am trying to implement all the ROS nodes in the real robot without carrying out the simulation, specifically, I want to know, whether it is necessary to create the urdf file of my robot.

It will be much helpful if I get the required steps to be carried out.

edit retag flag offensive close merge delete


You do not need a urdf file to use ros with a real robot. Assuming you're thinking about a simple 2/4 wheel robot with LIDAR and no manipulator, the steps required are detailed in the Navigation Stack tutorials.

billy gravatar image billy  ( 2019-09-19 19:16:55 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-09-20 01:27:48 -0500

Choco93 gravatar image

You should make a URDF because one of the most important thing in ROS are transforms. If you want to add lidar, do some mapping, or get odometry, you will need links for lidar and base_link, etc. You can take a look at these tutorials to start with.

edit flag offensive delete link more


Yes.. I want to do path planning and mapping.

Irudhaya gravatar image Irudhaya  ( 2019-09-20 02:44:57 -0500 )edit

Then do I need to write tf broadcaster and listener, because I want to know the pose of the robot corresponding to the real world.

Irudhaya gravatar image Irudhaya  ( 2019-09-20 03:37:22 -0500 )edit

Just make a URDF similar to your robot, and use that as your robot description, also you will need to run robot_state_publisher and joint_state_publisher and there is no need for broadcaster or listener unless you want to get some transforms within your code or publish a new transform.

Choco93 gravatar image Choco93  ( 2019-09-20 05:17:33 -0500 )edit

Question Tools

1 follower


Asked: 2019-09-19 15:45:01 -0500

Seen: 855 times

Last updated: Sep 20 '19