Task 1
Task Statement:
Create a ROS2 package named ros2mooc
with the following components:
- Package Structure: Organize the package to include a
task1/
directory containing an__init__.py
file and a new node script namedsuccess_node.py
.
- The package structure should look like this:
ros2mooc/
├── src/
├── hello_world/
└── task1/
├── task1/
│ ├── __init__.py
│ └── success_node.py
├── resource/
├── test/
├── package.xml
├── setup.cfg
└── setup.py
- Node Functionality: Implement the
success_node.py
script to print "Package created successfully" when executed. - Package Configuration: Ensure that the package includes necessary configuration files (
package.xml
,setup.cfg
, andsetup.py
) to facilitate the building and running of the ROS2 node.
Expected Output:
[INFO] [success_node]: Package created successfully