A brief description of your project goes here.
-
Open a terminal and navigate to the directory where you want to create the ROS2 workspace.
-
Run the following command to create a new ROS2 workspace:
mkdir -p ros2_ws/src cd ros2_ws
-
Inside the
srcdirectory of your ROS2 workspace, clone the project repository by running the following command:git clone <project_url>
-
Open a new terminal and navigate to the root of your ROS2 workspace.
-
Build the project with the following command:
colcon build --symlink-install
-
Depending on your ROS2 version, you may encounter an error during the build due to the service messages. For ROS2 Humble, you need to comment out the
std_msgsimport, while for ROS2 Jazzy, it is required.
-
After the build is complete, source the ROS2 setup file in the same terminal:
-
If you have configured it in your
.bashrc, run:source .bashrc -
Alternatively, source the workspace setup file directly:
source ~/ros2_ws/install/setup.bash
-
-
Open a new terminal and navigate to the root of your ROS2 workspace.
-
To perform a clean build, remove the
build,install, andlogdirectories, which store built files and logs. Run the following commands:rm -rf build/ install/ log/
-
After cleaning, rebuild the workspace with:
colcon build
-
Once the build is complete, remember to source the workspace again. For instructions, refer to step 4 in the Installation section.
- To start the main node (e.g., mover_service_node), use the following command:
ros2 run planar_motor_nodes mover_service_node- Once the node is running, you can send Service commands or monitor topics using tools like rqt or the ros_sequential_action_programmer. To run the ros_sequential_action_programmer, use:
ros2 run ros_sequential_action_programmer ros_sequential_action_programmer- The Service Node includes a parameter called use_simulation_mode. When this parameter is set to True, the code will bypass sections that require a connected PMC (Planar Motor Controller). This allows you to compile and run your code without the PMC being physically connected, making it easier to test and develop in a simulated environment.
Instructions on how to run tests for your project.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
This project is licensed under the MIT License.