ros2_control_custom_hardware_interface repository

ros2_control_custom_hardware_interface repository

ros2_control_custom_hardware_interface repository

Repository Summary

Checkout URI https://github.com/masum919/ros2_control_custom_hardware_interface.git
VCS Type git
VCS Version main
Last Updated 2024-12-04
Dev Status UNMAINTAINED
CI status No Continuous Integration
Released UNRELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Packages

Name Version
motor_controller 0.0.0

README

ros2_control_custom_hardware_interface

A ros2 control implementation of a custom hardware interface (arduino) to send motor commands. This implementation sends commands to two motors (can be extended for many motors) and reads encoder values from the motors. The arduino code handles only one motor and can be easily extended for more motors.

Some important commands

Launch the controller with the command ros2 launch motor_controller motor.launch.py Send a sample motor command from a separate terminal ros2 topic pub -r 10 /motor_controller/commands std_msgs/msg/Float64MultiArray "data: [861.0, 9892.0]" List out all the active controllers with the command ros2 control list_controllers Deactivate the motor controller with the command ros2 control set_controller_state motor_controller inactive Unload the motor controller with the command ros2 control unload_controller motor_controller Reload the controller with the command ros2 control load_controller motor_controller Reactivate the controller with the command ros2 control set_controller_state motor_controller_active

If you intend to use multiple controllers for controlling multiple Arduinos from the same machine make the following changes in your config.yaml and your launch files for all the controllers.

config_yaml launch_py

CONTRIBUTING

No CONTRIBUTING.md found.

ros2_control_custom_hardware_interface repository

ros2_control_custom_hardware_interface repository

ros2_control_custom_hardware_interface repository

ros2_control_custom_hardware_interface repository

ros2_control_custom_hardware_interface repository

ros2_control_custom_hardware_interface repository

ros2_control_custom_hardware_interface repository

ros2_control_custom_hardware_interface repository

ros2_control_custom_hardware_interface repository

ros2_control_custom_hardware_interface repository

ros2_control_custom_hardware_interface repository

ros2_control_custom_hardware_interface repository

ros2_control_custom_hardware_interface repository

ros2_control_custom_hardware_interface repository

ros2_control_custom_hardware_interface repository