You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ros2_node:
Runs your code as a standalone Python file using python3 solution.py.
Best for: nodes that don't need colcon build, simple publisher/subscriber/service problems.
ros2_python_node:
Builds your code as a proper ROS2 Python package using colcon, then runs it with ros2 run.
Best for: problems that need multiple files (package.xml, setup.py), or where the entry point must match ros2 run pkg_name node_name format.
If your problem has a files[] array with package.xml and setup.py, it uses ros2_python_node. Otherwise it uses ros2_node.
Hope that helps. Post below if you have more questions about execution types.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
This comes up a lot so posting it here.
ros2_node:
Runs your code as a standalone Python file using
python3 solution.py.Best for: nodes that don't need colcon build, simple publisher/subscriber/service problems.
ros2_python_node:
Builds your code as a proper ROS2 Python package using colcon, then runs it with
ros2 run.Best for: problems that need multiple files (package.xml, setup.py), or where the entry point must match
ros2 run pkg_name node_nameformat.If your problem has a
files[]array with package.xml and setup.py, it usesros2_python_node. Otherwise it usesros2_node.Hope that helps. Post below if you have more questions about execution types.
Beta Was this translation helpful? Give feedback.
All reactions