-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44199e6
commit fe59c52
Showing
5 changed files
with
71 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# This is the configuration for the controller_manager in ROS 2 | ||
controller_manager: | ||
ros__parameters: | ||
ubiquity_velocity_controller: | ||
type: "diff_drive_controller/DiffDriveController" | ||
|
||
# Specify the joints connected to the wheels | ||
left_wheel_names: ['left_wheel_joint'] | ||
right_wheel_names: ['right_wheel_joint'] | ||
|
||
# Publish rate for odometry messages | ||
publish_rate: 50.0 # Same as in ROS 1, rate of odom publishing | ||
|
||
# Covariance for pose and twist (six elements representing the covariance matrix diagonal) | ||
pose_covariance_diagonal: [0.2, 0.2, 0.2, 0.2, 0.2, 0.2] | ||
twist_covariance_diagonal: [0.2, 0.2, 0.2, 0.2, 0.2, 0.2] | ||
|
||
# Velocity command timeout (stop if no command received after this time) | ||
cmd_vel_timeout: 0.25 | ||
|
||
# Enable publishing of the transform from odom to base_frame_id | ||
enable_odom_tf: true | ||
|
||
# Robot physical parameters | ||
wheel_separation: 0.33 | ||
wheel_radius: 0.1015 | ||
|
||
# Base frame ID for the robot | ||
base_frame_id: base_footprint | ||
|
||
# Multipliers to adjust wheel separation and radius (usually left at 1.0) | ||
wheel_separation_multiplier: 1.0 | ||
wheel_radius_multiplier: 1.0 | ||
|
||
# Velocity and acceleration limits for linear and angular motion | ||
linear: | ||
x: | ||
has_velocity_limits: true | ||
max_velocity: 1.0 # Maximum forward speed (m/s) | ||
has_acceleration_limits: true | ||
max_acceleration: 1.1 # Maximum acceleration (m/s^2) | ||
|
||
angular: | ||
z: | ||
has_velocity_limits: true | ||
max_velocity: 2.0 # Maximum rotational speed (rad/s) | ||
has_acceleration_limits: true | ||
max_acceleration: 5.0 # Maximum angular acceleration (rad/s^2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from launch import LaunchDescription | ||
from launch_ros.actions import Node | ||
|
||
def generate_launch_description(): | ||
return LaunchDescription([ | ||
Node( | ||
package='controller_manager', | ||
executable='spawner', # Correct executable for spawning controllers | ||
arguments=['diff_drive_controller'], # Controller name | ||
parameters=['/home/ubuntu/ros2_ws/src/ubiquity_motor_ros2/cfg/test.yaml'], # Path to your YAML config file | ||
output='screen', | ||
), | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters