I am new to ROS and am wondering about the difference between launch script and launch node?
example launch script:
python ~/helloworld/turtlebot/goforward_and_avoid_obstacle.py
example launch node:
roslaunch simple_navigation_goals movebase_seq.launch
Launch files allow you to run multiple scripts and define input variables, and set default values. Personally, I would find it hard to remember which combination of nodes and parameters I need to run without having it consolidated into a launch file.
Also, workspaces may contain C++ and python code, but you can run either with roslaunch.
you mean i can put file.py in a package and run it with roslaunch just like for launch file
Yes. Here is an example of a launch file calling other launch files as well as two scripts:
Thank you very much, by the way I want to make a simulation example that controls turtlebot to move along a diamond in Rviz. What steps should I take?
I think you should open a new question for this. I am not a moderator, but you would likely find more feedback and make it easier for others to find your answer in the future :)
That said, I would probably start off with exploring a ROS package for the turtlebot and look into Gazebo