What is the executable in Launch file and setup.py?

Hi there,

In the ROS2 in 5 days section 2 Basic Concepts, simple.py is create as python script but simple_node is used as the executable.
What is the executable in Launch file and setup.py actually?

In ROS1 launch file, we have the following parameters:

  1. type=“executable_python_file_name.py” # Name of the program file that we want to execute
  2. name=“node_name” # Name of the ROS node that will launch the Python file

The executable in ROS2 corresponds to the type or name in ROS1?


Oh I figure it out…
We add an executable to the entry_points, and map the executable to the script and the main function.
Then in the launch file, <executable_name> refers to the <executable_name> of the entry point defined in setup.py to specify which script to run.

Tbh, the course is confusing…

1 Like

Glad you figured it out. Don’t worry, this sometimes happens.

If you have an idea of how we could improve this or another section of the course, kindly let us know.

You are right, it is confusing, basically because the naming is not clear enough. Let us improve it in the next days

I studied ROS basics myself many many years ago as a freshman…I just wanted to refresh it.
I found the courses ROS and ROS2 in 5 days have the following issues:

  1. They cannot be finished in 5 days as many people mentioned in the review comments
  2. They provided the scripts directly instead of a code template and lacked instructions and details/summaries sometimes.
  3. The solutions are not OOP. The codes are not clean…
  4. The ROS and ROS2 courses are basically in the same logic which might be a waste of time for people who studied the ROS course.
  5. ROS2 course does not mention and summarize the difference between ROS1 and ROS2.
  6. You do not need to provide all the simple linux commands/scripts for copying and pasting or at least somehow hide it until they really do not know. Students need to practice typing them directly and writing codes. If they cannot, they need to review the basic courses like Python, C++ and linux.

The project-based courses are great but I find it hard to follow compared to the courses I attended in uni…

Thank you very much for your feedback. It is really useful! We are going to take action based on your feedback

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.