ROS Node to interact with motors
-
Create ros2 C++ package
ros2 pkg create --build-type ament_cmake --node-name motors_interface motors_interface
-
Build package
colcon build --packages-select motors_interface
-
Source the setup file
. install/setup.bash
-
Use the package
ros2 run motors_interface motors_interface
-
Customize package.xml
it needs wiringPi installed in /usr/local/lib
- git clone https://github.com/WiringPi/WiringPi
- cd WiringPi
- sudo ./build
pca9685 from https://github.com/Reinbert/pca9685
This software contains code licensed as described in LICENSE.