andino_base package from andino repoandino_apps andino_base andino_bringup andino_control andino_description andino_firmware andino_gz_classic andino_hardware andino_navigation andino_slam |
|
Package Summary
Tags | No category tags. |
Version | 0.2.0 |
License | BSD Clause 3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/Ekumen-OS/andino.git |
VCS Type | git |
VCS Version | humble |
Last Updated | 2024-09-16 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Franco Cipollone
Authors
- Franco Cipollone
andino_base
Description
The hardware-software-ros interaction in the andino
project is developed using ROS 2 Control.
This package:
- Implements
andino
’s hardware interface. - Provides a communication with microcontroller:
-
andino_base::MotorDriver
class is in charge of the Serial communication for commanding the motors.- An application is provided for evaluating the communication: Check
applications/motor_driver_demo.cpp
. To use this application simply executemotor_driver_demo --help
to see the options.
- An application is provided for evaluating the communication: Check
- This communication module is used by the hardware interface implementation.
-
Hardware Interface
In ros2_control
hardware system components are libraries, dynamically loaded by the controller manager using the pluginlib interface.
For extra information about the hardware components see Hardware Components.
The hardware interface accepts some parameters that are passed via the urdf description within the ros2_control
tag (Check andino_description
)
Params | Description |
---|---|
left_wheel_name | Name of the left wheel joint. |
right_wheel_name | Name of the right wheel joint. |
serial_device | Path to the serial device. |
baud_rate | Baud rate of the serial communication. |
timeout | Timeout for the communication. |
enc_ticks_per_rev | Encoder ticks per revolution of the wheel. |
State interfaces
This hardware interface implements the following state interfaces per joint (for left and right joint):
- Position: The position is obtained via encoder information from the microcontroller.
- Velocity: Velocity is calculated via encoder information from the microcontroller.
Command interfaces
This hardware interface uses the following command interfaces per joint (for left and right joint):
- Velocity: The velocity received (rad/s) is traduced to microcontroller’s velocity nomenclature for the motors.
Motor Driver Application
An application for testing the connection with the microcontroller is provided.
After installing this package the application called motor_driver_demo
can be used.
motor_driver_demo --help
This application allows verifying the communication with the microcontroller for controlling the motors. Commands for reading the encoders or individually setting a velocity for the motors is some of the possibilities.
Extra Notes
- Serial communication: In case the serial port is denied to be open, probably the user should be added to the
plugdev
anddialout
groups:
sudo usermod -a -G dialout $USER
sudo usermod -a -G plugdev $USER
Changelog for package andino_base
0.2.0 (2024-07-19)
- explicitly add <cstdint> header for fixed width integer types (#254)
- Contributors: Sakura286
0.1.0 (2023-10-09)
Wiki Tutorials
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
controller_manager | |
joint_state_broadcaster | |
ament_cmake_clang_format | |
hardware_interface | |
rclcpp | |
rclcpp_lifecycle | |
pluginlib |
System Dependencies
Dependant Packages
Name | Deps |
---|---|
andino_control |