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

writing and running a code

asked 2015-08-20 09:39:02 -0500

Fi gravatar image

Hi Just a funny question for whom are clever in ROS! I have read the tutorial just for well understanding checking I ask the following question? (Please do not refer me to Tutorial) What are the main steps of a written and execution of C++ code in ROS 1-writing a C++ code 2-making cmake 3-run roscpp Is there any other files that there is obligation to make before running? (What about launch file or others? Is there any obligation?) Thanks Fi

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-08-20 13:23:05 -0500

duck-development gravatar image

you can start every ros packet without a launch or yaml file (rosrun ). with roslunch you have an fremework for automaik starting and dependency chake for sub launsch files. you can starte every node by hand with an call of rosrun for everey node or you start the whole system witch one call of roslaunch

edit flag offensive delete link more

Comments

I appreciate it if you reply me

Fi gravatar image Fi  ( 2015-08-21 00:46:19 -0500 )edit
0

answered 2015-08-20 18:21:30 -0500

Fi gravatar image

updated 2015-08-20 19:00:12 -0500

Tnx for your reply

This mean that only run rosrun is sufficient! Also another funny question I have some doubts that I understand cmakelist.txt and launch file completely and their differences! What is the difference between the (cmakelist.txt )and (package.xml) launch file?

Also I did not understand the purpose of .yalm file?

edit flag offensive delete link more

Comments

1

I yaml File is an Configuration File with an special syntax, a Cmakefile is a file for the gcc and it is an instruction how to build a binary from source. The package.xml is an Ros Dependency System where you can specify the Dependency from other Ros Packeges.

duck-development gravatar image duck-development  ( 2015-08-21 03:39:39 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-08-20 09:39:02 -0500

Seen: 188 times

Last updated: Aug 20 '15