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

How to start Coding on ROS

asked 2019-01-31 16:22:28 -0500

Jaykumar gravatar image

Hey guys am really new into coding and we have a huge project coming for one of my courses and we are supposed to use ROS to code a turtlebot3. Am really not sure how to start coding, for example, I don't even know how to create a file for coding and launch that code. Is there any guide that I can look at? I have tried multiple videos but they don't explain really well.

edit retag flag offensive close merge delete



I'd say, first work on learning to program and using Linux and once you're comfortable with that then you should start working with ROS. If you try to do it all at once you're going to have a really hard time.

jayess gravatar image jayess  ( 2019-01-31 20:58:43 -0500 )edit

Yea i worked on some tutorials posted on the turtlebot3 website and i got SLAM and stuff working

Jaykumar gravatar image Jaykumar  ( 2019-01-31 21:06:26 -0500 )edit

That's great. But, if you're new to programming then you're going to have a lot of trouble (I've seen it many times both here and IRL). So, look for good resources for the programming language that you're going to use (e.g., Python, C++) and for Ubuntu/Linux. Then learning ROS will be easier.

jayess gravatar image jayess  ( 2019-02-01 02:27:11 -0500 )edit

I have tried multiple videos but they don't explain really well.

What videos? What don't you understand? Being specific goes a long way.

jayess gravatar image jayess  ( 2019-02-01 02:27:52 -0500 )edit

I took a course on C++ a while back but we mainly used to analyze the codes and see what they did, for videos I was looking for how to make a package and try to launch the package and if I can modify existing packages. Also how to use codes that are already on Github.

Jaykumar gravatar image Jaykumar  ( 2019-02-01 06:33:57 -0500 )edit

Then you should definitely check out the tutorials on the wiki that @JAWDAY linked to in their answer for text-based tutorials (they're the only "official" tutorials that I'm aware of). As for videos, I can't vouch for any.

jayess gravatar image jayess  ( 2019-02-01 06:38:12 -0500 )edit

Will do, Thanks for your help. My prof told me the ROS forums are pretty active and a great community.

Jaykumar gravatar image Jaykumar  ( 2019-02-01 12:59:37 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2019-01-31 20:56:20 -0500

JAWDAY gravatar image

Like most people, I recommend starting with the tutorials Go through all of them, then google "turtlebot3 gazebo" and look at simulating your TurtleBot, will be much easier for development. Then, using what you learnt from the tutorials, try and create some sort of subscriber and publisher that works with the simulation. From there you will have a good foundation.

Unless you want to pay for tutorials, you can then just keep googling issues, find other peoples ROS repos on GitHub, etc, to help you get a better understanding.

edit flag offensive delete link more


This helps, Thanks

Jaykumar gravatar image Jaykumar  ( 2019-01-31 21:07:41 -0500 )edit

answered 2019-02-01 01:10:32 -0500

spiritninja gravatar image

I suppose you want to have certain knowledge where you are able to understand and code some basic actions and control for your robot such that it meets your requirement for the time being as you have to get something built up quickly for your project, later to which you could build up on the basics you would have gathered.

Being specific to Turtlebot 3, you can try the ROS development studio and its tutorials which give you a fair idea to get started with (coding and code manipulation) dealing with basic movement to creating launch files and nodes quickly.

Also, there are many tutorials from The Construct concerning ROS dev studio that give a clear idea to how it's done. Meanwhile, you could refer this which is pretty good enough compared to bulky ROS books. Besides, instead of paying for tutorials, the same are available on Youtube.

On the other hand, with this material you can petty much decide which would suit your feasibility such as using Python or C++ in ROS.

edit flag offensive delete link more


Yea I think its great idea to run simulations before you actually use the Bot. Thanks for the help

Jaykumar gravatar image Jaykumar  ( 2019-02-01 13:01:53 -0500 )edit

Question Tools

1 follower


Asked: 2019-01-31 16:22:28 -0500

Seen: 1,077 times

Last updated: Feb 01 '19