Update Documentation
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" ?>
|
||||
<sdf version="1.6">
|
||||
<world name="empty">
|
||||
<physics name="1ms" type="ignored">
|
||||
<max_step_size>0.001</max_step_size>
|
||||
<real_time_factor>1.0</real_time_factor>
|
||||
</physics>
|
||||
|
||||
<plugin filename="gz-sim-contact-system" name="gz::sim::systems::Contact" />
|
||||
<plugin filename="gz-sim-imu-system" name="gz::sim::systems::Imu" />
|
||||
<plugin filename="gz-sim-physics-system" name="gz::sim::systems::Physics" />
|
||||
<plugin filename="gz-sim-scene-broadcaster-system" name="gz::sim::systems::SceneBroadcaster" />
|
||||
<plugin filename="gz-sim-sensors-system" name="gz::sim::systems::Sensors" />
|
||||
<plugin filename="gz-sim-user-commands-system" name="gz::sim::systems::UserCommands" />
|
||||
|
||||
<spherical_coordinates>
|
||||
<surface_model>EARTH_WGS84</surface_model>
|
||||
<world_frame_orientation>ENU</world_frame_orientation>
|
||||
<latitude_deg>50.088384</latitude_deg>
|
||||
<longitude_deg>19.939128</longitude_deg>
|
||||
<elevation>0</elevation>
|
||||
<heading_deg>0</heading_deg>
|
||||
</spherical_coordinates>
|
||||
|
||||
<light type="directional" name="sun">
|
||||
<cast_shadows>true</cast_shadows>
|
||||
<pose>0 0 10 0 0 0</pose>
|
||||
<diffuse>0.8 0.8 0.8 1</diffuse>
|
||||
<specular>0.2 0.2 0.2 1</specular>
|
||||
<attenuation>
|
||||
<range>1000</range>
|
||||
<constant>0.9</constant>
|
||||
<linear>0.01</linear>
|
||||
<quadratic>0.001</quadratic>
|
||||
</attenuation>
|
||||
<direction>-0.5 0.1 -0.9</direction>
|
||||
</light>
|
||||
|
||||
<model name="ground_plane">
|
||||
<static>true</static>
|
||||
<link name="link">
|
||||
<collision name="collision">
|
||||
<geometry>
|
||||
<plane>
|
||||
<normal>0 0 1</normal>
|
||||
<size>100 100</size>
|
||||
</plane>
|
||||
</geometry>
|
||||
</collision>
|
||||
<visual name="visual">
|
||||
<geometry>
|
||||
<plane>
|
||||
<normal>0 0 1</normal>
|
||||
<size>100 100</size>
|
||||
</plane>
|
||||
</geometry>
|
||||
<material>
|
||||
<ambient>0.8 0.8 0.8 1</ambient>
|
||||
<diffuse>0.8 0.8 0.8 1</diffuse>
|
||||
<specular>0.8 0.8 0.8 1</specular>
|
||||
</material>
|
||||
</visual>
|
||||
</link>
|
||||
</model>
|
||||
|
||||
</world>
|
||||
</sdf>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,88 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<sdf version="1.6">
|
||||
<world name="husarion_world">
|
||||
<physics name="1ms" type="ignored">
|
||||
<max_step_size>0.001</max_step_size>
|
||||
<real_time_factor>1.0</real_time_factor>
|
||||
</physics>
|
||||
|
||||
<plugin filename="gz-sim-contact-system" name="gz::sim::systems::Contact" />
|
||||
<plugin filename="gz-sim-imu-system" name="gz::sim::systems::Imu" />
|
||||
<plugin filename="gz-sim-physics-system" name="gz::sim::systems::Physics" />
|
||||
<plugin filename="gz-sim-scene-broadcaster-system"
|
||||
name="gz::sim::systems::SceneBroadcaster" />
|
||||
<plugin filename="gz-sim-sensors-system" name="gz::sim::systems::Sensors" />
|
||||
<plugin filename="gz-sim-user-commands-system" name="gz::sim::systems::UserCommands" />
|
||||
|
||||
<spherical_coordinates>
|
||||
<surface_model>EARTH_WGS84</surface_model>
|
||||
<world_frame_orientation>ENU</world_frame_orientation>
|
||||
<latitude_deg>50.088384</latitude_deg>
|
||||
<longitude_deg>19.939128</longitude_deg>
|
||||
<elevation>0</elevation>
|
||||
<heading_deg>0</heading_deg>
|
||||
</spherical_coordinates>
|
||||
|
||||
<model name="husarion_world">
|
||||
<static>true</static>
|
||||
<link name="mesh">
|
||||
<pose>13.0 16.0 0 0 0 -1.57</pose>
|
||||
<visual name="visual">
|
||||
<geometry>
|
||||
<mesh>
|
||||
<uri>model://HusarionLogo/meshes/husarion_logo.dae</uri>
|
||||
<scale>6.0 6.0 6.0</scale>
|
||||
</mesh>
|
||||
</geometry>
|
||||
</visual>
|
||||
<collision name="visual">
|
||||
<geometry>
|
||||
<mesh>
|
||||
<uri>model://HusarionLogo/meshes/husarion_logo.dae</uri>
|
||||
<scale>6.0 6.0 6.0</scale>
|
||||
</mesh>
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
|
||||
<link name="map">
|
||||
<light type="directional" name="sun">
|
||||
<cast_shadows>true</cast_shadows>
|
||||
<pose>0 0 10 0 0 0</pose>
|
||||
<diffuse>0.8 0.8 0.8 1</diffuse>
|
||||
<specular>0.2 0.2 0.2 1</specular>
|
||||
<attenuation>
|
||||
<range>1000</range>
|
||||
<constant>0.9</constant>
|
||||
<linear>0.01</linear>
|
||||
<quadratic>0.001</quadratic>
|
||||
</attenuation>
|
||||
<direction>-0.5 0.1 -0.9</direction>
|
||||
</light>
|
||||
<collision name="collision">
|
||||
<geometry>
|
||||
<plane>
|
||||
<normal>0 0 1</normal>
|
||||
<size>25 25</size>
|
||||
</plane>
|
||||
</geometry>
|
||||
</collision>
|
||||
<visual name="visual">
|
||||
<geometry>
|
||||
<plane>
|
||||
<normal>0 0 1</normal>
|
||||
<size>25 25</size>
|
||||
</plane>
|
||||
</geometry>
|
||||
<material>
|
||||
<ambient>0.8 0.8 0.8 1</ambient>
|
||||
<diffuse>0.8 0.8 0.8 1</diffuse>
|
||||
<specular>0.8 0.8 0.8 1</specular>
|
||||
</material>
|
||||
</visual>
|
||||
</link>
|
||||
</model>
|
||||
|
||||
</world>
|
||||
</sdf>
|
||||
@@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" ?>
|
||||
<sdf version='1.6'>
|
||||
<world name='sonoma'>
|
||||
<physics name="5ms" type="ignored">
|
||||
<max_step_size>0.005</max_step_size>
|
||||
<real_time_factor>1.0</real_time_factor>
|
||||
</physics>
|
||||
<scene>
|
||||
<grid>0</grid>
|
||||
</scene>
|
||||
|
||||
<plugin filename="gz-sim-contact-system" name="gz::sim::systems::Contact" />
|
||||
<plugin filename="gz-sim-imu-system" name="gz::sim::systems::Imu" />
|
||||
<plugin filename="gz-sim-physics-system" name="gz::sim::systems::Physics" />
|
||||
<plugin filename="gz-sim-scene-broadcaster-system"
|
||||
name="gz::sim::systems::SceneBroadcaster" />
|
||||
<plugin filename="gz-sim-sensors-system" name="gz::sim::systems::Sensors" />
|
||||
<plugin filename="gz-sim-user-commands-system" name="gz::sim::systems::UserCommands" />
|
||||
|
||||
<spherical_coordinates>
|
||||
<surface_model>EARTH_WGS84</surface_model>
|
||||
<world_frame_orientation>ENU</world_frame_orientation>
|
||||
<latitude_deg>38.161410</latitude_deg>
|
||||
<longitude_deg>-122.454530</longitude_deg>
|
||||
<elevation>0</elevation>
|
||||
<heading_deg>0</heading_deg>
|
||||
</spherical_coordinates>
|
||||
|
||||
<light type="directional" name="sun">
|
||||
<cast_shadows>true</cast_shadows>
|
||||
<visual>false</visual>
|
||||
<pose>0 0 100 0 0 0</pose>
|
||||
<diffuse>0.8 0.8 0.8 1</diffuse>
|
||||
<specular>0.2 0.2 0.2 1</specular>
|
||||
<attenuation>
|
||||
<range>1000</range>
|
||||
<constant>0.9</constant>
|
||||
<linear>0.01</linear>
|
||||
<quadratic>0.001</quadratic>
|
||||
</attenuation>
|
||||
<direction>-0.5 0.1 -0.9</direction>
|
||||
</light>
|
||||
|
||||
<include>
|
||||
<pose>-290 142 -7.2 0 0 0</pose>
|
||||
<uri>https://fuel.ignitionrobotics.org/1.0/openrobotics/models/Sonoma Raceway</uri>
|
||||
</include>
|
||||
|
||||
</world>
|
||||
</sdf>
|
||||
@@ -0,0 +1,80 @@
|
||||
/**:
|
||||
controller_manager:
|
||||
ros__parameters:
|
||||
update_rate: 100
|
||||
|
||||
joint_state_broadcaster:
|
||||
type: joint_state_broadcaster/JointStateBroadcaster
|
||||
drive_controller:
|
||||
type: diff_drive_controller/DiffDriveController
|
||||
imu_broadcaster:
|
||||
type: imu_sensor_broadcaster/IMUSensorBroadcaster
|
||||
|
||||
# IMU specification: https://www.phidgets.com/?tier=3&catid=10&pcid=8&prodid=1025#Tab_Specifications
|
||||
imu_broadcaster:
|
||||
ros__parameters:
|
||||
sensor_name: <namespace>/imu
|
||||
frame_id: <namespace>/imu_link
|
||||
# orientation_stddev: 4.3e-2 rad determined experimentally
|
||||
static_covariance_orientation: [1.8e-3, 0.0, 0.0, 0.0, 1.8e-3, 0.0, 0.0, 0.0, 1.8e-3]
|
||||
# angular_velocity_stdev: 0.59 deg/s (0.01 rad/s) gyroscope white noise sigma, according to the manual
|
||||
static_covariance_angular_velocity: [1.0e-4, 0.0, 0.0, 0.0, 1.0e-4, 0.0, 0.0, 0.0, 1.0e-4]
|
||||
# linear_acceleration_stdev: 2.8 mg (0.0275 m/s^2) accelerometer white noise sigma, according to the manual
|
||||
static_covariance_linear_acceleration: [7.6e-4, 0.0, 0.0, 0.0, 7.6e-4, 0.0, 0.0, 0.0, 7.6e-4]
|
||||
|
||||
drive_controller:
|
||||
ros__parameters:
|
||||
left_wheel_names: [fl_wheel_joint, rl_wheel_joint]
|
||||
right_wheel_names: [fr_wheel_joint, rr_wheel_joint]
|
||||
|
||||
wheel_separation: 0.697
|
||||
wheel_radius: 0.1825
|
||||
|
||||
# For skid drive kinematics it will act as ICR coefficient, kinematic model with ICR
|
||||
# coefficient isn't totally accurate and this coefficient can differ for various ground types
|
||||
wheel_separation_multiplier: 1.5
|
||||
|
||||
left_wheel_radius_multiplier: 1.0
|
||||
right_wheel_radius_multiplier: 1.0
|
||||
|
||||
publish_rate: 100.0
|
||||
odom_frame_id: odom
|
||||
base_frame_id: base_link
|
||||
twist_covariance_diagonal: [5.4e-5, 5.4e-5, 0.0, 0.0, 0.0, 1.9e-4] # Values measured experimentally
|
||||
|
||||
# Whether to use feedback or commands for odometry calculations
|
||||
open_loop: false
|
||||
|
||||
# Update odometry from velocity
|
||||
# in sensor fusion only velocity is used and with this setting it is more accurate
|
||||
position_feedback: false
|
||||
# velocity computation filtering
|
||||
velocity_rolling_window_size: 1
|
||||
|
||||
enable_odom_tf: false
|
||||
|
||||
cmd_vel_timeout: 0.2
|
||||
publish_limited_velocity: false
|
||||
|
||||
# Velocity and acceleration limits
|
||||
linear:
|
||||
x:
|
||||
max_velocity: 2.0 # m/s
|
||||
min_velocity: -2.0 # m/s
|
||||
max_acceleration: 2.7 # m/s^2
|
||||
max_deceleration: -2.7 # m/s^2
|
||||
max_acceleration_reverse: -2.7 # m/s^2
|
||||
max_deceleration_reverse: 2.7 # m/s^2
|
||||
max_jerk: .NAN # m/s^3
|
||||
min_jerk: .NAN # m/s^3
|
||||
|
||||
angular:
|
||||
z:
|
||||
max_velocity: 4.0 # rad/s
|
||||
min_velocity: -4.0 # rad/s
|
||||
max_acceleration: 5.74 # rad/s^2
|
||||
max_deceleration: -5.74 # rad/s^2
|
||||
max_acceleration_reverse: -5.74 # rad/s^2
|
||||
max_deceleration_reverse: 5.74 # rad/s^2
|
||||
max_jerk: .NAN # rad/s^3
|
||||
min_jerk: .NAN # rad/s^3
|
||||
@@ -0,0 +1,81 @@
|
||||
/**:
|
||||
controller_manager:
|
||||
ros__parameters:
|
||||
update_rate: 100
|
||||
|
||||
joint_state_broadcaster:
|
||||
type: joint_state_broadcaster/JointStateBroadcaster
|
||||
drive_controller:
|
||||
type: mecanum_drive_controller/MecanumDriveController
|
||||
imu_broadcaster:
|
||||
type: imu_sensor_broadcaster/IMUSensorBroadcaster
|
||||
|
||||
# IMU specification: https://www.phidgets.com/?tier=3&catid=10&pcid=8&prodid=1025#Tab_Specifications
|
||||
imu_broadcaster:
|
||||
ros__parameters:
|
||||
sensor_name: <namespace>/imu
|
||||
frame_id: <namespace>/imu_link
|
||||
# orientation_stddev: 4.3e-2 rad determined experimentally
|
||||
static_covariance_orientation: [1.8e-3, 0.0, 0.0, 0.0, 1.8e-3, 0.0, 0.0, 0.0, 1.8e-3]
|
||||
# angular_velocity_stdev: 0.59 deg/s (0.01 rad/s) gyroscope white noise sigma, according to the manual
|
||||
static_covariance_angular_velocity: [1.0e-4, 0.0, 0.0, 0.0, 1.0e-4, 0.0, 0.0, 0.0, 1.0e-4]
|
||||
# linear_acceleration_stdev: 2.8 mg (0.0275 m/s^2) accelerometer white noise sigma, according to the manual
|
||||
static_covariance_linear_acceleration: [7.6e-4, 0.0, 0.0, 0.0, 7.6e-4, 0.0, 0.0, 0.0, 7.6e-4]
|
||||
|
||||
drive_controller:
|
||||
ros__parameters:
|
||||
front_left_wheel_name: fl_wheel_joint
|
||||
front_right_wheel_name: fr_wheel_joint
|
||||
rear_left_wheel_name: rl_wheel_joint
|
||||
rear_right_wheel_name: rr_wheel_joint
|
||||
|
||||
wheel_separation_x: 0.44
|
||||
wheel_separation_y: 0.6785
|
||||
wheel_radius: 0.1016
|
||||
|
||||
wheel_separation_x_multiplier: 1.0
|
||||
wheel_separation_y_multiplier: 1.0
|
||||
|
||||
wheel_radius_multiplier: 1.0
|
||||
|
||||
publish_rate: 100.0
|
||||
odom_frame_id: odom
|
||||
base_frame_id: base_link
|
||||
twist_covariance_diagonal: [5.4e-5, 5.4e-5, 0.0, 0.0, 0.0, 1.9e-4] # Selected intuitively based on WH01 results
|
||||
|
||||
# Whether to use feedback or commands for odometry calculations
|
||||
open_loop: false
|
||||
|
||||
# Update odometry from velocity
|
||||
# in sensor fusion only velocity is used and with this setting it is more accurate
|
||||
position_feedback: false
|
||||
# velocity computation filtering
|
||||
velocity_rolling_window_size: 1
|
||||
|
||||
enable_odom_tf: false
|
||||
|
||||
cmd_vel_timeout: 0.2
|
||||
publish_limited_velocity: false
|
||||
|
||||
# Velocity and acceleration limits
|
||||
linear:
|
||||
x:
|
||||
max_velocity: 1.1 # m/s
|
||||
min_velocity: -1.1 # m/s
|
||||
max_acceleration: 1.5 # m/s^2
|
||||
max_deceleration: -1.5 # m/s^2
|
||||
max_acceleration_reverse: -1.5 # m/s^2
|
||||
max_deceleration_reverse: 1.5 # m/s^2
|
||||
max_jerk: .NAN # m/s^3
|
||||
min_jerk: .NAN # m/s^3
|
||||
|
||||
angular:
|
||||
z:
|
||||
max_velocity: 2.2 # rad/s
|
||||
min_velocity: -2.2 # rad/s
|
||||
max_acceleration: 3.2 # rad/s^2
|
||||
max_deceleration: -3.2 # rad/s^2
|
||||
max_acceleration_reverse: -3.2 # rad/s^2
|
||||
max_deceleration_reverse: 3.2 # rad/s^2
|
||||
max_jerk: .NAN # rad/s^3
|
||||
min_jerk: .NAN # rad/s^3
|
||||
@@ -0,0 +1,81 @@
|
||||
/**:
|
||||
controller_manager:
|
||||
ros__parameters:
|
||||
update_rate: 100
|
||||
|
||||
joint_state_broadcaster:
|
||||
type: joint_state_broadcaster/JointStateBroadcaster
|
||||
drive_controller:
|
||||
type: diff_drive_controller/DiffDriveController
|
||||
imu_broadcaster:
|
||||
type: imu_sensor_broadcaster/IMUSensorBroadcaster
|
||||
|
||||
# IMU specification: https://www.phidgets.com/?tier=3&catid=10&pcid=8&prodid=1025#Tab_Specifications
|
||||
imu_broadcaster:
|
||||
ros__parameters:
|
||||
sensor_name: <namespace>/imu
|
||||
frame_id: <namespace>/imu_link
|
||||
# orientation_stddev: 4.3e-2 rad determined experimentally
|
||||
static_covariance_orientation: [1.8e-3, 0.0, 0.0, 0.0, 1.8e-3, 0.0, 0.0, 0.0, 1.8e-3]
|
||||
# angular_velocity_stdev: 0.59 deg/s (0.01 rad/s) gyroscope white noise sigma, according to the manual
|
||||
static_covariance_angular_velocity: [1.0e-4, 0.0, 0.0, 0.0, 1.0e-4, 0.0, 0.0, 0.0, 1.0e-4]
|
||||
# linear_acceleration_stdev: 2.8 mg (0.0275 m/s^2) accelerometer white noise sigma, according to the manual
|
||||
static_covariance_linear_acceleration: [7.6e-4, 0.0, 0.0, 0.0, 7.6e-4, 0.0, 0.0, 0.0, 7.6e-4]
|
||||
|
||||
drive_controller:
|
||||
ros__parameters:
|
||||
left_wheel_names: [fl_wheel_joint, rl_wheel_joint]
|
||||
right_wheel_names: [fr_wheel_joint, rr_wheel_joint]
|
||||
|
||||
wheel_separation: 0.616
|
||||
wheel_radius: 0.1016
|
||||
|
||||
# TODO: check it
|
||||
# For skid drive kinematics it will act as ICR coefficient, kinematic model with ICR
|
||||
# coefficient isn't totally accurate and this coefficient can differ for various ground types
|
||||
wheel_separation_multiplier: 1.0
|
||||
|
||||
left_wheel_radius_multiplier: 1.0
|
||||
right_wheel_radius_multiplier: 1.0
|
||||
|
||||
publish_rate: 100.0
|
||||
odom_frame_id: odom
|
||||
base_frame_id: base_link
|
||||
twist_covariance_diagonal: [2.7e-5, 2.7e-5, 0.0, 0.0, 0.0, 1.0e-4] # Selected intuitively based on WH01 results
|
||||
|
||||
# Whether to use feedback or commands for odometry calculations
|
||||
open_loop: false
|
||||
|
||||
# Update odometry from velocity
|
||||
# in sensor fusion only velocity is used and with this setting it is more accurate
|
||||
position_feedback: false
|
||||
# velocity computation filtering
|
||||
velocity_rolling_window_size: 1
|
||||
|
||||
enable_odom_tf: false
|
||||
|
||||
cmd_vel_timeout: 0.2
|
||||
publish_limited_velocity: false
|
||||
|
||||
# Velocity and acceleration limits
|
||||
linear:
|
||||
x:
|
||||
max_velocity: 1.1 # m/s
|
||||
min_velocity: -1.1 # m/s
|
||||
max_acceleration: 1.5 # m/s^2
|
||||
max_deceleration: -1.5 # m/s^2
|
||||
max_acceleration_reverse: -1.5 # m/s^2
|
||||
max_deceleration_reverse: 1.5 # m/s^2
|
||||
max_jerk: .NAN # m/s^3
|
||||
min_jerk: .NAN # m/s^3
|
||||
|
||||
angular:
|
||||
z:
|
||||
max_velocity: 2.2 # rad/s
|
||||
min_velocity: -2.2 # rad/s
|
||||
max_acceleration: 3.2 # rad/s^2
|
||||
max_deceleration: -3.2 # rad/s^2
|
||||
max_acceleration_reverse: -3.2 # rad/s^2
|
||||
max_deceleration_reverse: 3.2 # rad/s^2
|
||||
max_jerk: .NAN # rad/s^3
|
||||
min_jerk: .NAN # rad/s^3
|
||||
@@ -0,0 +1,82 @@
|
||||
/**:
|
||||
controller_manager:
|
||||
ros__parameters:
|
||||
update_rate: 100
|
||||
|
||||
joint_state_broadcaster:
|
||||
type: joint_state_broadcaster/JointStateBroadcaster
|
||||
drive_controller:
|
||||
type: diff_drive_controller/DiffDriveController
|
||||
imu_broadcaster:
|
||||
type: imu_sensor_broadcaster/IMUSensorBroadcaster
|
||||
|
||||
# IMU specification: https://www.phidgets.com/?tier=3&catid=10&pcid=8&prodid=1025#Tab_Specifications
|
||||
imu_broadcaster:
|
||||
ros__parameters:
|
||||
sensor_name: <namespace>/imu
|
||||
frame_id: <namespace>/imu_link
|
||||
# orientation_stddev: 4.3e-2 rad determined experimentally
|
||||
static_covariance_orientation: [1.8e-3, 0.0, 0.0, 0.0, 1.8e-3, 0.0, 0.0, 0.0, 1.8e-3]
|
||||
# angular_velocity_stdev: 0.59 deg/s (0.01 rad/s) gyroscope white noise sigma, according to the manual
|
||||
static_covariance_angular_velocity: [1.0e-4, 0.0, 0.0, 0.0, 1.0e-4, 0.0, 0.0, 0.0, 1.0e-4]
|
||||
# linear_acceleration_stdev: 2.8 mg (0.0275 m/s^2) accelerometer white noise sigma, according to the manual
|
||||
static_covariance_linear_acceleration: [7.6e-4, 0.0, 0.0, 0.0, 7.6e-4, 0.0, 0.0, 0.0, 7.6e-4]
|
||||
|
||||
drive_controller:
|
||||
ros__parameters:
|
||||
left_wheel_names: [fl_wheel_joint, rl_wheel_joint]
|
||||
right_wheel_names: [fr_wheel_joint, rr_wheel_joint]
|
||||
|
||||
wheel_separation: 0.45
|
||||
wheel_radius: 0.144
|
||||
|
||||
# For skid drive kinematics it will act as ICR coefficient, kinematic model with ICR
|
||||
# coefficient isn't totally accurate and this coefficient can differ for various ground types
|
||||
wheel_separation_multiplier: 1.6
|
||||
|
||||
# This parameter depends on wheels pressure and robot mass.
|
||||
# It was measured experimentally without load and with the pressure of 1.2 bar.
|
||||
left_wheel_radius_multiplier: 0.964
|
||||
right_wheel_radius_multiplier: 0.964
|
||||
|
||||
publish_rate: 100.0
|
||||
odom_frame_id: odom
|
||||
base_frame_id: base_link
|
||||
twist_covariance_diagonal: [5.4e-5, 5.4e-5, 0.0, 0.0, 0.0, 1.9e-4] # Values measured experimentally
|
||||
|
||||
# Whether to use feedback or commands for odometry calculations
|
||||
open_loop: false
|
||||
|
||||
# Update odometry from velocity
|
||||
# in sensor fusion only velocity is used and with this setting it is more accurate
|
||||
position_feedback: false
|
||||
# velocity computation filtering
|
||||
velocity_rolling_window_size: 1
|
||||
|
||||
enable_odom_tf: false
|
||||
|
||||
cmd_vel_timeout: 0.2
|
||||
publish_limited_velocity: false
|
||||
|
||||
# Velocity and acceleration limits
|
||||
linear:
|
||||
x:
|
||||
max_velocity: 1.5 # m/s
|
||||
min_velocity: -1.5 # m/s
|
||||
max_acceleration: 2.1 # m/s^2
|
||||
max_deceleration: -2.1 # m/s^2
|
||||
max_acceleration_reverse: -2.1 # m/s^2
|
||||
max_deceleration_reverse: 2.1 # m/s^2
|
||||
max_jerk: .NAN # m/s^3
|
||||
min_jerk: .NAN # m/s^3
|
||||
|
||||
angular:
|
||||
z:
|
||||
max_velocity: 4.0 # rad/s
|
||||
min_velocity: -4.0 # rad/s
|
||||
max_acceleration: 5.74 # rad/s^2
|
||||
max_deceleration: -5.74 # rad/s^2
|
||||
max_acceleration_reverse: -5.74 # rad/s^2
|
||||
max_deceleration_reverse: 5.74 # rad/s^2
|
||||
max_jerk: .NAN # rad/s^3
|
||||
min_jerk: .NAN # rad/s^3
|
||||
@@ -0,0 +1,9 @@
|
||||
wheel_radius: 0.1825
|
||||
wheel_width: 0.14
|
||||
mount_point_offset: 0.091
|
||||
mass: 3.0
|
||||
inertia: { ixx: 0.022510, iyy: 0.034850, izz: 0.022510 }
|
||||
inertia_y_offset: 0.0
|
||||
mesh_package: husarion_ugv_description
|
||||
folder_path: meshes/WH01
|
||||
mecanum: False
|
||||
@@ -0,0 +1,9 @@
|
||||
wheel_radius: 0.1016
|
||||
wheel_width: 0.08
|
||||
mount_point_offset: 0.08165
|
||||
mass: 2.4
|
||||
inertia: { ixx: 0.010050, iyy: 0.016496, izz: 0.010068 }
|
||||
inertia_y_offset: 0.0
|
||||
mesh_package: husarion_ugv_description
|
||||
folder_path: meshes/WH02
|
||||
mecanum: True
|
||||
@@ -0,0 +1,9 @@
|
||||
wheel_radius: 0.1016
|
||||
wheel_width: 0.04
|
||||
mount_point_offset: 0.06
|
||||
mass: 0.85
|
||||
inertia: { ixx: 0.003099, iyy: 0.005849, izz: 0.003101 }
|
||||
inertia_y_offset: 0.0
|
||||
mesh_package: husarion_ugv_description
|
||||
folder_path: meshes/WH04
|
||||
mecanum: False
|
||||
@@ -0,0 +1,9 @@
|
||||
wheel_radius: 0.1348
|
||||
wheel_width: 0.09
|
||||
mount_point_offset: 0.06
|
||||
mass: 2.036
|
||||
inertia: { ixx: 0.014738, iyy: 0.02593, izz: 0.014738 }
|
||||
inertia_y_offset: 0.0
|
||||
mesh_package: husarion_ugv_description
|
||||
folder_path: meshes/WH05
|
||||
mecanum: False
|
||||
@@ -0,0 +1,21 @@
|
||||
# By default Husarion UGV is loaded without any components.
|
||||
|
||||
components: []
|
||||
|
||||
# If you want to add for example DEV02, LDR06 and CAM01 to your robot look at the example below:
|
||||
|
||||
# components:
|
||||
# - type: DEV02
|
||||
|
||||
# - type: LDR06
|
||||
# parent_link: mount_link
|
||||
# xyz: 0.0 -0.1 0.0
|
||||
# rpy: 0.0 0.0 0.0
|
||||
# device_namespace: second_lidar
|
||||
|
||||
# - type: CAM01
|
||||
# name: camera
|
||||
# parent_link: mount_link
|
||||
# xyz: 0.1 0.0 0.0
|
||||
# rpy: 0.0 0.0 0.0
|
||||
# device_namespace: front_cam
|
||||
@@ -0,0 +1,22 @@
|
||||
# Parameters for the Gazebo LinearBatteryPlugin
|
||||
# For more information on robots power consumption, please refer to:
|
||||
# Panther: https://husarion.com/manuals/panther/#battery--charging
|
||||
|
||||
# If set to true, the battery will discharge and if it depletes completely, the robot will stop moving.
|
||||
simulate_discharging: false
|
||||
|
||||
# Battery capacity
|
||||
# BAT01 - 20 Ah
|
||||
# BAT02 - 40 Ah
|
||||
capacity: 20.0 # [Ah]
|
||||
|
||||
# Sets the initial charge percentage of the battery (range 0-1).
|
||||
initial_charge_percentage: 0.7
|
||||
|
||||
# Specifies the charging time for the battery in hours.
|
||||
charging_time: 6.0 # [h]
|
||||
|
||||
# Constant power discharging the battery.
|
||||
# 120W – represents the power consumed during normal operation.
|
||||
# With this power load, the robot equipped with BAT01 should work for about 7 hours.
|
||||
power_load: 120.0 # [W]
|
||||
@@ -0,0 +1,7 @@
|
||||
# For detailed information on configuring the parameter_bridge, please refer to:
|
||||
# https://github.com/gazebosim/ros_gz/tree/ros2/ros_gz_bridge#example-5-configuring-the-bridge-via-yaml
|
||||
|
||||
- topic_name: /clock
|
||||
ros_type_name: rosgraph_msgs/msg/Clock
|
||||
gz_type_name: gz.msgs.Clock
|
||||
direction: GZ_TO_ROS
|
||||
@@ -0,0 +1,23 @@
|
||||
# For detailed information on configuring the parameter_bridge, please refer to:
|
||||
# https://github.com/gazebosim/ros_gz/tree/ros2/ros_gz_bridge#example-5-configuring-the-bridge-via-yaml
|
||||
|
||||
- ros_topic_name: /<namespace>/battery/battery_status
|
||||
gz_topic_name: /model/<model_name>/battery/<namespace>/battery/state
|
||||
ros_type_name: sensor_msgs/msg/BatteryState
|
||||
gz_type_name: gz.msgs.BatteryState
|
||||
direction: GZ_TO_ROS
|
||||
|
||||
- topic_name: /<namespace>/cmd_vel
|
||||
ros_type_name: geometry_msgs/msg/TwistStamped
|
||||
gz_type_name: gz.msgs.Twist
|
||||
direction: GZ_TO_ROS
|
||||
|
||||
- topic_name: /<namespace>/lights/channel_1_frame
|
||||
ros_type_name: sensor_msgs/msg/Image
|
||||
gz_type_name: gz.msgs.Image
|
||||
direction: ROS_TO_GZ
|
||||
|
||||
- topic_name: /<namespace>/lights/channel_2_frame
|
||||
ros_type_name: sensor_msgs/msg/Image
|
||||
gz_type_name: gz.msgs.Image
|
||||
direction: ROS_TO_GZ
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,311 @@
|
||||
panels:
|
||||
- channel: 1
|
||||
number_of_leds: 24
|
||||
- channel: 2
|
||||
number_of_leds: 24
|
||||
|
||||
segments:
|
||||
- name: fl
|
||||
channel: 1
|
||||
led_range: 23-12
|
||||
- name: rl
|
||||
channel: 1
|
||||
led_range: 0-11
|
||||
- name: fr
|
||||
channel: 2
|
||||
led_range: 23-12
|
||||
- name: rr
|
||||
channel: 2
|
||||
led_range: 0-11
|
||||
|
||||
segments_map:
|
||||
all: [fl, fr, rl, rr]
|
||||
front: [fl, fr]
|
||||
rear: [rl, rr]
|
||||
left: [fl, rl]
|
||||
right: [fr, rr]
|
||||
fl: [fl]
|
||||
fr: [fr]
|
||||
rl: [rl]
|
||||
rr: [rr]
|
||||
|
||||
led_animations:
|
||||
- id: 0
|
||||
name: E_STOP
|
||||
priority: 3
|
||||
animations:
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/estop_front.png
|
||||
duration: 6
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/estop_rear.png
|
||||
duration: 6
|
||||
|
||||
- id: 1
|
||||
name: READY
|
||||
priority: 3
|
||||
animations:
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/ready_front.png
|
||||
duration: 6
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/ready_rear.png
|
||||
duration: 6
|
||||
|
||||
- id: 2
|
||||
name: ERROR
|
||||
priority: 0
|
||||
animations:
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: all
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/error.png
|
||||
duration: 2
|
||||
repeat: 2
|
||||
|
||||
- id: 3
|
||||
name: NO_ERROR
|
||||
priority: 0
|
||||
animations:
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: all
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/empty.png
|
||||
duration: 1
|
||||
repeat: 1
|
||||
|
||||
- id: 4
|
||||
name: MANUAL_ACTION
|
||||
priority: 3
|
||||
animations:
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/manual_action_front.png
|
||||
duration: 6
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/manual_action_rear.png
|
||||
duration: 6
|
||||
|
||||
- id: 5
|
||||
name: LOW_BATTERY
|
||||
priority: 2
|
||||
animations:
|
||||
- type: husarion_ugv_lights::MovingImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/low_battery.png
|
||||
duration: 10
|
||||
repeat: 1
|
||||
center_offset: 24
|
||||
object_width: 2
|
||||
splash_duration: 10.0
|
||||
image_mirrored: true
|
||||
position_mirrored: true
|
||||
- type: husarion_ugv_lights::MovingImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/low_battery.png
|
||||
duration: 10
|
||||
repeat: 1
|
||||
center_offset: 24
|
||||
object_width: 2
|
||||
splash_duration: 10.0
|
||||
image_mirrored: true
|
||||
position_mirrored: true
|
||||
|
||||
- id: 6
|
||||
name: CRITICAL_BATTERY
|
||||
priority: 2
|
||||
animations:
|
||||
- type: husarion_ugv_lights::MovingImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/critical_battery.png
|
||||
duration: 10
|
||||
repeat: 1
|
||||
center_offset: 24
|
||||
object_width: 2
|
||||
splash_duration: 10.0
|
||||
image_mirrored: true
|
||||
position_mirrored: true
|
||||
- type: husarion_ugv_lights::MovingImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/critical_battery.png
|
||||
duration: 10
|
||||
repeat: 1
|
||||
center_offset: 24
|
||||
object_width: 2
|
||||
splash_duration: 10.0
|
||||
image_mirrored: true
|
||||
position_mirrored: true
|
||||
|
||||
- id: 7
|
||||
name: CHARGING_BATTERY
|
||||
priority: 2
|
||||
animations:
|
||||
- type: husarion_ugv_lights::MovingImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/charging_battery_front.png
|
||||
duration: 10
|
||||
repeat: 1
|
||||
center_offset: 40
|
||||
object_width: 1
|
||||
splash_duration: 10.0
|
||||
image_mirrored: true
|
||||
position_mirrored: true
|
||||
- type: husarion_ugv_lights::MovingImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/charging_battery_rear.png
|
||||
duration: 10
|
||||
repeat: 1
|
||||
center_offset: 40
|
||||
object_width: 1
|
||||
splash_duration: 10.0
|
||||
image_mirrored: true
|
||||
position_mirrored: true
|
||||
|
||||
- id: 8
|
||||
name: BATTERY_CHARGED
|
||||
priority: 2
|
||||
animations:
|
||||
- type: husarion_ugv_lights::MovingImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/battery_charged_front.png
|
||||
duration: 10
|
||||
repeat: 1
|
||||
center_offset: 40
|
||||
object_width: 1
|
||||
splash_duration: 10.0
|
||||
image_mirrored: true
|
||||
position_mirrored: true
|
||||
- type: husarion_ugv_lights::MovingImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/battery_charged_rear.png
|
||||
duration: 10
|
||||
repeat: 1
|
||||
center_offset: 40
|
||||
object_width: 1
|
||||
splash_duration: 10.0
|
||||
image_mirrored: true
|
||||
position_mirrored: true
|
||||
|
||||
- id: 9
|
||||
name: CHARGER_INSERTED
|
||||
priority: 1
|
||||
animations:
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/charger_inserted_front.png
|
||||
duration: 8
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/charger_inserted_rear.png
|
||||
duration: 8
|
||||
|
||||
- id: 10
|
||||
name: BATTERY_NOMINAL
|
||||
priority: 2
|
||||
animations:
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: all
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/empty.png
|
||||
duration: 1
|
||||
repeat: 1
|
||||
|
||||
- id: 11
|
||||
name: AUTONOMOUS_READY
|
||||
priority: 3
|
||||
animations:
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/autonomous_ready_front.png
|
||||
duration: 6
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/autonomous_ready_rear.png
|
||||
duration: 6
|
||||
|
||||
- id: 12
|
||||
name: AUTONOMOUS_ACTION
|
||||
priority: 3
|
||||
animations:
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/autonomous_action_front.png
|
||||
duration: 6
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/autonomous_action_rear.png
|
||||
duration: 6
|
||||
|
||||
- id: 13
|
||||
name: GOAL_ACHIEVED
|
||||
priority: 1
|
||||
animations:
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/goal_achieved_front.png
|
||||
duration: 4
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/goal_achieved_rear.png
|
||||
duration: 4
|
||||
|
||||
- id: 14
|
||||
name: BLINKER_LEFT
|
||||
priority: 1
|
||||
animations:
|
||||
- type: husarion_ugv_lights::MovingImageAnimation
|
||||
segments: left
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/blinker.png
|
||||
duration: 2
|
||||
repeat: 3
|
||||
center_offset: 17
|
||||
object_width: 1
|
||||
default_image_position: 0.2
|
||||
splash_duration: 2.0
|
||||
image_mirrored: true
|
||||
position_mirrored: true
|
||||
|
||||
- id: 15
|
||||
name: BLINKER_RIGHT
|
||||
priority: 1
|
||||
animations:
|
||||
- type: husarion_ugv_lights::MovingImageAnimation
|
||||
segments: right
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/lynx/blinker.png
|
||||
duration: 2
|
||||
repeat: 3
|
||||
center_offset: 17
|
||||
object_width: 1
|
||||
default_image_position: 0.2
|
||||
splash_duration: 2.0
|
||||
image_mirrored: true
|
||||
position_mirrored: true
|
||||
@@ -0,0 +1,5 @@
|
||||
# In ComposableNode ros__parameters are not supported:
|
||||
frame_timeout: 0.1
|
||||
global_brightness: 1.0
|
||||
channel_1_num_led: 24
|
||||
channel_2_num_led: 24
|
||||
@@ -0,0 +1,289 @@
|
||||
panels:
|
||||
- channel: 1
|
||||
number_of_leds: 46
|
||||
- channel: 2
|
||||
number_of_leds: 46
|
||||
|
||||
segments:
|
||||
- name: front
|
||||
channel: 1
|
||||
led_range: 0-45
|
||||
- name: rear
|
||||
channel: 2
|
||||
led_range: 45-0
|
||||
|
||||
segments_map:
|
||||
all: [front, rear]
|
||||
front: [front]
|
||||
rear: [rear]
|
||||
|
||||
led_animations:
|
||||
- id: 0
|
||||
name: E_STOP
|
||||
priority: 3
|
||||
animations:
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/estop_front.png
|
||||
duration: 6
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/estop_rear.png
|
||||
duration: 6
|
||||
|
||||
- id: 1
|
||||
name: READY
|
||||
priority: 3
|
||||
animations:
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/ready_front.png
|
||||
duration: 6
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/ready_rear.png
|
||||
duration: 6
|
||||
|
||||
- id: 2
|
||||
name: ERROR
|
||||
priority: 0
|
||||
animations:
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: all
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/error.png
|
||||
duration: 2
|
||||
repeat: 2
|
||||
|
||||
- id: 3
|
||||
name: NO_ERROR
|
||||
priority: 0
|
||||
animations:
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: all
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/empty.png
|
||||
duration: 1
|
||||
repeat: 1
|
||||
|
||||
- id: 4
|
||||
name: MANUAL_ACTION
|
||||
priority: 3
|
||||
animations:
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/manual_action_front.png
|
||||
duration: 6
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/manual_action_rear.png
|
||||
duration: 6
|
||||
|
||||
- id: 5
|
||||
name: LOW_BATTERY
|
||||
priority: 2
|
||||
animations:
|
||||
- type: husarion_ugv_lights::MovingImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/low_battery.png
|
||||
duration: 10
|
||||
repeat: 1
|
||||
center_offset: 24
|
||||
object_width: 2
|
||||
splash_duration: 10.0
|
||||
- type: husarion_ugv_lights::MovingImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/low_battery.png
|
||||
duration: 10
|
||||
repeat: 1
|
||||
center_offset: 24
|
||||
object_width: 2
|
||||
splash_duration: 10.0
|
||||
image_mirrored: true
|
||||
position_mirrored: true
|
||||
|
||||
- id: 6
|
||||
name: CRITICAL_BATTERY
|
||||
priority: 2
|
||||
animations:
|
||||
- type: husarion_ugv_lights::MovingImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/critical_battery.png
|
||||
duration: 10
|
||||
repeat: 1
|
||||
center_offset: 24
|
||||
object_width: 2
|
||||
splash_duration: 10.0
|
||||
- type: husarion_ugv_lights::MovingImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/critical_battery.png
|
||||
duration: 10
|
||||
repeat: 1
|
||||
center_offset: 24
|
||||
object_width: 2
|
||||
splash_duration: 10.0
|
||||
image_mirrored: true
|
||||
position_mirrored: true
|
||||
|
||||
- id: 7
|
||||
name: CHARGING_BATTERY
|
||||
priority: 2
|
||||
animations:
|
||||
- type: husarion_ugv_lights::MovingImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/charging_battery_front.png
|
||||
duration: 10
|
||||
repeat: 1
|
||||
center_offset: 38
|
||||
object_width: 1
|
||||
splash_duration: 10.0
|
||||
- type: husarion_ugv_lights::MovingImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/charging_battery_rear.png
|
||||
duration: 10
|
||||
repeat: 1
|
||||
center_offset: 38
|
||||
object_width: 1
|
||||
splash_duration: 10.0
|
||||
image_mirrored: true
|
||||
position_mirrored: true
|
||||
|
||||
- id: 8
|
||||
name: BATTERY_CHARGED
|
||||
priority: 2
|
||||
animations:
|
||||
- type: husarion_ugv_lights::MovingImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/battery_charged_front.png
|
||||
duration: 10
|
||||
repeat: 1
|
||||
center_offset: 38
|
||||
object_width: 1
|
||||
splash_duration: 10.0
|
||||
- type: husarion_ugv_lights::MovingImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/battery_charged_rear.png
|
||||
duration: 10
|
||||
repeat: 1
|
||||
center_offset: 38
|
||||
object_width: 1
|
||||
splash_duration: 10.0
|
||||
image_mirrored: true
|
||||
position_mirrored: true
|
||||
|
||||
- id: 9
|
||||
name: CHARGER_INSERTED
|
||||
priority: 1
|
||||
animations:
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/charger_inserted_front.png
|
||||
duration: 8
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/charger_inserted_rear.png
|
||||
duration: 8
|
||||
|
||||
- id: 10
|
||||
name: BATTERY_NOMINAL
|
||||
priority: 2
|
||||
animations:
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: all
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/empty.png
|
||||
duration: 1
|
||||
repeat: 1
|
||||
|
||||
- id: 11
|
||||
name: AUTONOMOUS_READY
|
||||
priority: 3
|
||||
animations:
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/autonomous_ready_front.png
|
||||
duration: 6
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/autonomous_ready_rear.png
|
||||
duration: 6
|
||||
|
||||
- id: 12
|
||||
name: AUTONOMOUS_ACTION
|
||||
priority: 3
|
||||
animations:
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/autonomous_action_front.png
|
||||
duration: 6
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/autonomous_action_rear.png
|
||||
duration: 6
|
||||
|
||||
- id: 13
|
||||
name: GOAL_ACHIEVED
|
||||
priority: 1
|
||||
animations:
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: front
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/goal_achieved_front.png
|
||||
duration: 4
|
||||
- type: husarion_ugv_lights::ImageAnimation
|
||||
segments: rear
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/goal_achieved_rear.png
|
||||
duration: 4
|
||||
|
||||
- id: 14
|
||||
name: BLINKER_LEFT
|
||||
priority: 1
|
||||
animations:
|
||||
- type: husarion_ugv_lights::MovingImageAnimation
|
||||
segments: all
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/blinker.png
|
||||
duration: 2
|
||||
repeat: 3
|
||||
center_offset: 17
|
||||
object_width: 1
|
||||
default_image_position: 0.2
|
||||
splash_duration: 2.0
|
||||
image_mirrored: true
|
||||
position_mirrored: true
|
||||
|
||||
- id: 15
|
||||
name: BLINKER_RIGHT
|
||||
priority: 1
|
||||
animations:
|
||||
- type: husarion_ugv_lights::MovingImageAnimation
|
||||
segments: all
|
||||
animation:
|
||||
image: $(find husarion_ugv_lights)/animations/panther/blinker.png
|
||||
duration: 2
|
||||
repeat: 3
|
||||
center_offset: 17
|
||||
object_width: 1
|
||||
default_image_position: 0.2
|
||||
splash_duration: 2.0
|
||||
@@ -0,0 +1,5 @@
|
||||
# In ComposableNode ros__parameters are not supported:
|
||||
frame_timeout: 0.1
|
||||
global_brightness: 1.0
|
||||
channel_1_num_led: 46
|
||||
channel_2_num_led: 46
|
||||
@@ -0,0 +1,22 @@
|
||||
# This file is a placeholder for user-defined animations for the Husarion UGV
|
||||
# robots lights system. Users can define their own light animations in this
|
||||
# YAML file.
|
||||
#
|
||||
# For more examples and detailed documentation, please visit:
|
||||
# https://github.com/husarion/husarion_ugv_ros/blob/ros2/panther_lights/CONFIGURATION.md#defining-animations
|
||||
|
||||
user_animations: []
|
||||
|
||||
# Example including a simple custom animation:
|
||||
#
|
||||
# user_animations:
|
||||
# - id: 21
|
||||
# name: CUSTOM_IMAGE_ANIMATION
|
||||
# priority: 3
|
||||
# animations:
|
||||
# - type: husarion_ugv_lights::ImageAnimation
|
||||
# segments: all
|
||||
# animation:
|
||||
# image: /config/husarion_ugv_lights/animations/example.png
|
||||
# duration: 3
|
||||
# repeat: 1
|
||||
@@ -0,0 +1,87 @@
|
||||
/**:
|
||||
ekf_filter:
|
||||
ros__parameters:
|
||||
frequency: 50.0
|
||||
sensor_timeout: 0.05
|
||||
two_d_mode: true
|
||||
|
||||
transform_time_offset: 0.0
|
||||
transform_timeout: 0.05
|
||||
|
||||
map_frame: map
|
||||
odom_frame: odom
|
||||
base_link_frame: base_link
|
||||
world_frame: odom
|
||||
publish_tf: true
|
||||
publish_acceleration: false
|
||||
|
||||
odom0: odometry/wheels
|
||||
odom0_config: [false, false, false,
|
||||
false, false, false,
|
||||
true, true, false,
|
||||
false, false, true,
|
||||
false, false, false]
|
||||
odom0_queue_size: 3
|
||||
odom0_nodelay: true
|
||||
odom0_differential: false
|
||||
odom0_relative: true
|
||||
|
||||
imu0: imu/data
|
||||
imu0_config: [false, false, false,
|
||||
false, false, true,
|
||||
false, false, false,
|
||||
false, false, true,
|
||||
false, false, false]
|
||||
imu0_queue_size: 3
|
||||
imu0_nodelay: true
|
||||
imu0_differential: false
|
||||
imu0_relative: false
|
||||
imu0_remove_gravitational_acceleration: false
|
||||
|
||||
use_control: true
|
||||
stamped_control: true
|
||||
control_timeout: 0.5
|
||||
control_config: [true, true, false, false, false, true]
|
||||
acceleration_limits: [2.7, 1.5, 0.0, 0.0, 0.0, 5.7] # Values taken from WH01_controller.yaml and WH02_controller.yaml inside husarion_ugv_controller/config
|
||||
|
||||
predict_to_current_time: true
|
||||
|
||||
# Selected values experimentally so as to ensure relatively fast convergence (values should be about 10x higher than the sensor variance values)
|
||||
dynamic_process_noise_covariance: true
|
||||
process_noise_covariance: [2e-1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 2e-1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 2e-1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 3e-2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 3e-2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 3e-2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2e-5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2e-5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 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0.0, 1e-9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 1e5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9]
|
||||
@@ -0,0 +1,109 @@
|
||||
/**:
|
||||
ekf_filter:
|
||||
ros__parameters:
|
||||
frequency: 50.0
|
||||
sensor_timeout: 0.05
|
||||
two_d_mode: true
|
||||
|
||||
transform_time_offset: 0.0
|
||||
transform_timeout: 0.05
|
||||
|
||||
map_frame: map
|
||||
odom_frame: odom
|
||||
base_link_frame: base_link
|
||||
world_frame: odom
|
||||
publish_tf: true
|
||||
publish_acceleration: false
|
||||
|
||||
odom0: odometry/wheels
|
||||
odom0_config: [false, false, false,
|
||||
false, false, false,
|
||||
true, true, false,
|
||||
false, false, true,
|
||||
false, false, false]
|
||||
odom0_queue_size: 3
|
||||
odom0_nodelay: true
|
||||
odom0_differential: false
|
||||
odom0_relative: true
|
||||
|
||||
odom1: _odometry/gps
|
||||
odom1_config: [true, true, false,
|
||||
false, false, false,
|
||||
false, false, false,
|
||||
false, false, false,
|
||||
false, false, false]
|
||||
odom1_queue_size: 2
|
||||
odom1_differential: false
|
||||
odom1_relative: false
|
||||
|
||||
imu0: imu/data
|
||||
imu0_config: [false, false, false,
|
||||
false, false, true,
|
||||
false, false, false,
|
||||
false, false, true,
|
||||
false, false, false]
|
||||
imu0_queue_size: 3
|
||||
imu0_nodelay: true
|
||||
imu0_differential: false
|
||||
imu0_relative: false
|
||||
imu0_remove_gravitational_acceleration: false
|
||||
|
||||
use_control: true
|
||||
stamped_control: true
|
||||
control_timeout: 0.5
|
||||
control_config: [true, true, false, false, false, true]
|
||||
acceleration_limits: [2.7, 1.5, 0.0, 0.0, 0.0, 5.7] # Values taken from WH01_controller.yaml and WH02_controller.yaml inside husarion_ugv_controller/config
|
||||
|
||||
predict_to_current_time: true
|
||||
|
||||
# Selected values experimentally so as to ensure relatively fast convergence (values should be about 10x higher than the sensor variance values)
|
||||
dynamic_process_noise_covariance: true
|
||||
process_noise_covariance: [5e-3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 5e-3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 5e-3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.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0.0, 0.0, 1e-9, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9]
|
||||
|
||||
navsat_transform:
|
||||
ros__parameters:
|
||||
frequency: 5.0
|
||||
delay: 3.0
|
||||
magnetic_declination_radians: 0.0
|
||||
yaw_offset: 0.0
|
||||
zero_altitude: true
|
||||
broadcast_cartesian_transform: false
|
||||
publish_filtered_gps: true
|
||||
use_odometry_yaw: true
|
||||
wait_for_datum: false
|
||||
@@ -0,0 +1,7 @@
|
||||
/**:
|
||||
nmea_navsat_driver:
|
||||
ros__parameters:
|
||||
ip: 10.15.20.2
|
||||
port: 5000
|
||||
buffer_size: 4096
|
||||
timeout_sec: 2
|
||||
@@ -0,0 +1,87 @@
|
||||
/**:
|
||||
ekf_filter:
|
||||
ros__parameters:
|
||||
frequency: 50.0
|
||||
sensor_timeout: 0.05
|
||||
two_d_mode: true
|
||||
|
||||
transform_time_offset: 0.0
|
||||
transform_timeout: 0.05
|
||||
|
||||
map_frame: map
|
||||
odom_frame: odom
|
||||
base_link_frame: base_link
|
||||
world_frame: odom
|
||||
publish_tf: true
|
||||
publish_acceleration: false
|
||||
|
||||
odom0: odometry/wheels
|
||||
odom0_config: [false, false, false,
|
||||
false, false, false,
|
||||
true, true, false,
|
||||
false, false, true,
|
||||
false, false, false]
|
||||
odom0_queue_size: 3
|
||||
odom0_nodelay: true
|
||||
odom0_differential: false
|
||||
odom0_relative: true
|
||||
|
||||
imu0: imu/data
|
||||
imu0_config: [false, false, false,
|
||||
false, false, false,
|
||||
false, false, false,
|
||||
false, false, true,
|
||||
false, false, false]
|
||||
imu0_queue_size: 3
|
||||
imu0_nodelay: true
|
||||
imu0_differential: false
|
||||
imu0_relative: true
|
||||
imu0_remove_gravitational_acceleration: false
|
||||
|
||||
use_control: true
|
||||
stamped_control: true
|
||||
control_timeout: 0.5
|
||||
control_config: [true, true, false, false, false, true]
|
||||
acceleration_limits: [2.7, 1.5, 0.0, 0.0, 0.0, 5.7] # Values taken from WH01_controller.yaml and WH02_controller.yaml inside husarion_ugv_controller/config
|
||||
|
||||
predict_to_current_time: true
|
||||
|
||||
# Selected values experimentally so as to ensure relatively fast convergence (values should be about 10x higher than the sensor variance values)
|
||||
dynamic_process_noise_covariance: true
|
||||
process_noise_covariance: [1e-4, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 1e-4, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 1e-4, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 3e-3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 3e-3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 3e-3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2e-5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2e-5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 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1e-9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9]
|
||||
@@ -0,0 +1,109 @@
|
||||
/**:
|
||||
ekf_filter:
|
||||
ros__parameters:
|
||||
frequency: 50.0
|
||||
sensor_timeout: 0.05
|
||||
two_d_mode: true
|
||||
|
||||
transform_time_offset: 0.0
|
||||
transform_timeout: 0.05
|
||||
|
||||
map_frame: map
|
||||
odom_frame: odom
|
||||
base_link_frame: base_link
|
||||
world_frame: odom
|
||||
publish_tf: true
|
||||
publish_acceleration: false
|
||||
|
||||
odom0: odometry/wheels
|
||||
odom0_config: [false, false, false,
|
||||
false, false, false,
|
||||
true, true, false,
|
||||
false, false, true,
|
||||
false, false, false]
|
||||
odom0_queue_size: 3
|
||||
odom0_nodelay: true
|
||||
odom0_differential: false
|
||||
odom0_relative: true
|
||||
|
||||
odom1: _odometry/gps
|
||||
odom1_config: [true, true, false,
|
||||
false, false, false,
|
||||
false, false, false,
|
||||
false, false, false,
|
||||
false, false, false]
|
||||
odom1_queue_size: 2
|
||||
odom1_differential: false
|
||||
odom1_relative: true
|
||||
|
||||
imu0: imu/data
|
||||
imu0_config: [false, false, false,
|
||||
false, false, true,
|
||||
false, false, false,
|
||||
false, false, true,
|
||||
false, false, false]
|
||||
imu0_queue_size: 3
|
||||
imu0_nodelay: true
|
||||
imu0_differential: false
|
||||
imu0_relative: true
|
||||
imu0_remove_gravitational_acceleration: false
|
||||
|
||||
use_control: true
|
||||
stamped_control: true
|
||||
control_timeout: 0.5
|
||||
control_config: [true, true, false, false, false, true]
|
||||
acceleration_limits: [2.7, 1.5, 0.0, 0.0, 0.0, 5.7] # Values taken from WH01_controller.yaml and WH02_controller.yaml inside husarion_ugv_controller/config
|
||||
|
||||
predict_to_current_time: true
|
||||
|
||||
# Selected values experimentally so as to ensure relatively fast convergence (values should be about 10x higher than the sensor variance values)
|
||||
dynamic_process_noise_covariance: true
|
||||
process_noise_covariance: [5e-3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 5e-3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 5e-3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0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, 0.0, 1e-9, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9]
|
||||
|
||||
navsat_transform:
|
||||
ros__parameters:
|
||||
frequency: 5.0
|
||||
delay: 3.0
|
||||
magnetic_declination_radians: 0.0
|
||||
yaw_offset: 0.0
|
||||
zero_altitude: true
|
||||
broadcast_cartesian_transform: false
|
||||
publish_filtered_gps: true
|
||||
use_odometry_yaw: false
|
||||
wait_for_datum: false
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root BTCPP_format="4" project_name="LightsBT">
|
||||
<include path="lights.xml"/>
|
||||
<!-- Description of Node Models (used by Groot) -->
|
||||
<TreeNodesModel>
|
||||
<Action ID="CallSetLedAnimationService" editable="true">
|
||||
<input_port name="id">animation ID</input_port>
|
||||
<input_port name="param">optional parameter</input_port>
|
||||
<input_port name="repeating" default="false">indicates if animation should repeat</input_port>
|
||||
<input_port name="service_name">ROS service name</input_port>
|
||||
</Action>
|
||||
<Decorator ID="TickAfterTimeout" editable="true">
|
||||
<input_port name="timeout">time in s to wait before ticking child again</input_port>
|
||||
</Decorator>
|
||||
</TreeNodesModel>
|
||||
</root>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root BTCPP_format="4" project_name="SafetyBT">
|
||||
<include path="safety.xml"/>
|
||||
<include path="shutdown.xml"/>
|
||||
<!-- Description of Node Models (used by Groot) -->
|
||||
<TreeNodesModel>
|
||||
<Action ID="CallSetBoolService" editable="true">
|
||||
<input_port name="data">true / false value</input_port>
|
||||
<input_port name="service_name">ROS service name</input_port>
|
||||
</Action>
|
||||
<Action ID="CallTriggerService" editable="true">
|
||||
<input_port name="service_name">ROS service name</input_port>
|
||||
</Action>
|
||||
<Action ID="ExecuteCommand" editable="true">
|
||||
<input_port name="command">command to execute</input_port>
|
||||
<input_port name="timeout">command timeout in seconds</input_port>
|
||||
</Action>
|
||||
<Action ID="ShutdownHostsFromFile" editable="true">
|
||||
<input_port name="shutdown_hosts_file">global path to YAML file with hosts to shutdown</input_port>
|
||||
</Action>
|
||||
<Action ID="SignalShutdown" editable="true">
|
||||
<input_port name="reason">reason to shutdown robot</input_port>
|
||||
</Action>
|
||||
<Decorator ID="TickAfterTimeout" editable="true">
|
||||
<input_port name="timeout">time in s to wait before ticking child again</input_port>
|
||||
</Decorator>
|
||||
</TreeNodesModel>
|
||||
</root>
|
||||
@@ -0,0 +1,152 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root BTCPP_format="4">
|
||||
<BehaviorTree ID="BatteryAnimationSubtree">
|
||||
<Sequence>
|
||||
<Parallel name="ChargingSequence"
|
||||
failure_count="1"
|
||||
success_count="-1"
|
||||
_skipIf="battery_status != POWER_SUPPLY_STATUS_CHARGING \ && battery_status != POWER_SUPPLY_STATUS_FULL">
|
||||
<Delay delay_msec="300"
|
||||
_skipIf="current_battery_anim_id == CHARGING_BATTERY_ANIM_ID || current_battery_anim_id == BATTERY_CHARGED_ANIM_ID">
|
||||
<CallSetLedAnimationService name="SetChargerInsertedAnimation"
|
||||
id="{CHARGER_INSERTED_ANIM_ID}"
|
||||
param=""
|
||||
repeating="false"
|
||||
service_name="lights/set_animation"/>
|
||||
</Delay>
|
||||
<Delay delay_msec="2500"
|
||||
_skipIf="(battery_percent_round == charging_anim_percent \ && current_battery_anim_id == CHARGING_BATTERY_ANIM_ID\ || battery_percent_round == 1.0)">
|
||||
<CallSetLedAnimationService name="SetChargingAnimation"
|
||||
id="{CHARGING_BATTERY_ANIM_ID}"
|
||||
param="{battery_percent_round}"
|
||||
repeating="true"
|
||||
service_name="lights/set_animation"
|
||||
_onSuccess="charging_anim_percent = battery_percent_round; \ current_battery_anim_id = CHARGING_BATTERY_ANIM_ID"/>
|
||||
</Delay>
|
||||
<Delay delay_msec="2500"
|
||||
_skipIf="battery_percent_round != 1.0 \ || current_battery_anim_id == BATTERY_CHARGED_ANIM_ID">
|
||||
<CallSetLedAnimationService name="SetChargedAnimation"
|
||||
id="{BATTERY_CHARGED_ANIM_ID}"
|
||||
param="{battery_percent_round}"
|
||||
repeating="true"
|
||||
service_name="lights/set_animation"
|
||||
_onSuccess="charging_anim_percent = battery_percent_round; \ current_battery_anim_id = BATTERY_CHARGED_ANIM_ID"/>
|
||||
</Delay>
|
||||
</Parallel>
|
||||
<Sequence name="DischargingSequence"
|
||||
_skipIf="battery_status != POWER_SUPPLY_STATUS_DISCHARGING \ && battery_status != POWER_SUPPLY_STATUS_NOT_CHARGING">
|
||||
<Sequence name="BatteryStatusSequence">
|
||||
<TickAfterTimeout timeout="{LOW_BATTERY_ANIM_PERIOD}"
|
||||
_skipIf="battery_percent < CRITICAL_BATTERY_THRESHOLD_PERCENT \ || battery_percent >= LOW_BATTERY_THRESHOLD_PERCENT">
|
||||
<CallSetLedAnimationService name="SetLowBatteryAnimation"
|
||||
id="{LOW_BATTERY_ANIM_ID}"
|
||||
param="{battery_percent_round}"
|
||||
repeating="false"
|
||||
service_name="lights/set_animation"/>
|
||||
</TickAfterTimeout>
|
||||
<CallSetLedAnimationService name="SetCriticalBatteryAnimation"
|
||||
id="{CRITICAL_BATTERY_ANIM_ID}"
|
||||
param="{battery_percent_round}"
|
||||
repeating="true"
|
||||
service_name="lights/set_animation"
|
||||
_skipIf="battery_percent >= CRITICAL_BATTERY_THRESHOLD_PERCENT \ || current_battery_anim_id == CRITICAL_BATTERY_ANIM_ID"
|
||||
_onSuccess="current_battery_anim_id = CRITICAL_BATTERY_ANIM_ID"/>
|
||||
<CallSetLedAnimationService name="SetNominalBatteryAnimation"
|
||||
id="{BATTERY_NOMINAL_ANIM_ID}"
|
||||
param=""
|
||||
repeating="false"
|
||||
service_name="lights/set_animation"
|
||||
_skipIf="battery_percent < LOW_BATTERY_THRESHOLD_PERCENT \ || current_battery_anim_id == BATTERY_NOMINAL_ANIM_ID"
|
||||
_onSuccess="current_battery_anim_id = BATTERY_NOMINAL_ANIM_ID"/>
|
||||
</Sequence>
|
||||
</Sequence>
|
||||
</Sequence>
|
||||
</BehaviorTree>
|
||||
|
||||
<BehaviorTree ID="ErrorAnimationSubtree">
|
||||
<Sequence name="ErrorSequence">
|
||||
<Sequence _skipIf="current_error_anim_id == ERROR_ANIM_ID">
|
||||
<CallSetLedAnimationService name="SetErrorAnimation"
|
||||
id="{ERROR_ANIM_ID}"
|
||||
param=""
|
||||
repeating="true"
|
||||
service_name="lights/set_animation"
|
||||
_skipIf="battery_status != POWER_SUPPLY_STATUS_CHARGING \ || battery_health != POWER_SUPPLY_HEALTH_OVERHEAT"
|
||||
_onSuccess="current_error_anim_id = ERROR_ANIM_ID"/>
|
||||
<CallSetLedAnimationService name="SetErrorAnimation"
|
||||
id="{ERROR_ANIM_ID}"
|
||||
param=""
|
||||
repeating="true"
|
||||
service_name="lights/set_animation"
|
||||
_skipIf="battery_status != POWER_SUPPLY_STATUS_UNKNOWN"
|
||||
_onSuccess="current_error_anim_id = ERROR_ANIM_ID"/>
|
||||
</Sequence>
|
||||
<Sequence _skipIf="current_error_anim_id == NO_ERROR_ANIM_ID">
|
||||
<CallSetLedAnimationService name="SetNoErrorAnimation"
|
||||
id="{NO_ERROR_ANIM_ID}"
|
||||
param=""
|
||||
repeating="true"
|
||||
service_name="lights/set_animation"
|
||||
_skipIf="battery_status == POWER_SUPPLY_STATUS_UNKNOWN \ || (battery_status == POWER_SUPPLY_STATUS_CHARGING \ && battery_health == POWER_SUPPLY_HEALTH_OVERHEAT)"
|
||||
_onSuccess="current_error_anim_id = NO_ERROR_ANIM_ID"/>
|
||||
</Sequence>
|
||||
</Sequence>
|
||||
</BehaviorTree>
|
||||
|
||||
<BehaviorTree ID="Lights">
|
||||
<Parallel failure_count="1"
|
||||
success_count="-1">
|
||||
<SubTree ID="ErrorAnimationSubtree"
|
||||
_autoremap="true"/>
|
||||
<SubTree ID="BatteryAnimationSubtree"
|
||||
_autoremap="true"/>
|
||||
<SubTree ID="StateAnimationSubtree"
|
||||
_autoremap="true"/>
|
||||
</Parallel>
|
||||
</BehaviorTree>
|
||||
|
||||
<BehaviorTree ID="StateAnimationSubtree">
|
||||
<Sequence>
|
||||
<Sequence _skipIf="e_stop_state">
|
||||
<CallSetLedAnimationService name="SetReadyAnimation"
|
||||
id="{READY_ANIM_ID}"
|
||||
param=""
|
||||
repeating="true"
|
||||
service_name="lights/set_animation"
|
||||
_skipIf="drive_state || current_anim_id == READY_ANIM_ID"
|
||||
_onSuccess="current_anim_id = READY_ANIM_ID"/>
|
||||
<CallSetLedAnimationService name="SetManualActionAnimation"
|
||||
id="{MANUAL_ACTION_ANIM_ID}"
|
||||
param=""
|
||||
repeating="true"
|
||||
service_name="lights/set_animation"
|
||||
_skipIf="(!drive_state) || current_anim_id == MANUAL_ACTION_ANIM_ID"
|
||||
_onSuccess="current_anim_id = MANUAL_ACTION_ANIM_ID"/>
|
||||
</Sequence>
|
||||
<CallSetLedAnimationService name="SetEStopAnimation"
|
||||
id="{E_STOP_ANIM_ID}"
|
||||
param=""
|
||||
repeating="true"
|
||||
service_name="lights/set_animation"
|
||||
_skipIf="(!e_stop_state) || current_anim_id == E_STOP_ANIM_ID"
|
||||
_onSuccess="current_anim_id = E_STOP_ANIM_ID"/>
|
||||
</Sequence>
|
||||
</BehaviorTree>
|
||||
|
||||
<!-- Description of Node Models (used by Groot) -->
|
||||
<TreeNodesModel>
|
||||
<Action ID="CallSetLedAnimationService"
|
||||
editable="true">
|
||||
<input_port name="id">animation ID</input_port>
|
||||
<input_port name="param">optional parameter</input_port>
|
||||
<input_port name="repeating"
|
||||
default="false">indicates if animation should repeat</input_port>
|
||||
<input_port name="service_name">ROS service name</input_port>
|
||||
</Action>
|
||||
<Decorator ID="TickAfterTimeout"
|
||||
editable="true">
|
||||
<input_port name="timeout">time in s to wait before ticking child again</input_port>
|
||||
</Decorator>
|
||||
</TreeNodesModel>
|
||||
|
||||
</root>
|
||||
@@ -0,0 +1,89 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root BTCPP_format="4">
|
||||
<BehaviorTree ID="Safety">
|
||||
<Sequence>
|
||||
<Sequence name="BatteryOverheatSequence"
|
||||
_skipIf="battery_health != POWER_SUPPLY_HEALTH_OVERHEAT">
|
||||
<Sequence name="FatalBatTempSequence"
|
||||
_skipIf="bat_temp <= FATAL_BAT_TEMP">
|
||||
<SignalShutdown reason="Fatal battery temperature"/>
|
||||
</Sequence>
|
||||
<Sequence name="HighBatTempSequence"
|
||||
_skipIf="bat_temp > FATAL_BAT_TEMP">
|
||||
<Sequence name="CriticalBatTempSequence"
|
||||
_skipIf="bat_temp <= CRITICAL_BAT_TEMP">
|
||||
<CallTriggerService name="TriggerEStop"
|
||||
service_name="hardware/e_stop_trigger"
|
||||
_skipIf="e_stop_state"/>
|
||||
<CallSetBoolService name="DisableAUX"
|
||||
data="false"
|
||||
service_name="hardware/aux_power_enable"
|
||||
_skipIf="!aux_state"/>
|
||||
</Sequence>
|
||||
<CallSetBoolService name="EnableFan"
|
||||
data="true"
|
||||
service_name="hardware/fan_enable"
|
||||
_skipIf="fan_state"/>
|
||||
</Sequence>
|
||||
</Sequence>
|
||||
<Sequence name="BatteryDeadSequence"
|
||||
_skipIf="battery_health != POWER_SUPPLY_HEALTH_DEAD">
|
||||
<SignalShutdown reason="Battery dead"/>
|
||||
</Sequence>
|
||||
<Sequence name="BatteryOvervoltageSequence"
|
||||
_skipIf="battery_health != POWER_SUPPLY_HEALTH_OVERVOLTAGE">
|
||||
<CallTriggerService name="TriggerEStop"
|
||||
service_name="hardware/e_stop_trigger"
|
||||
_skipIf="e_stop_state"/>
|
||||
</Sequence>
|
||||
<RunOnce name="TurnOnFunAtStartup"
|
||||
then_skip="true">
|
||||
<CallSetBoolService name="EnableFan"
|
||||
data="true"
|
||||
service_name="hardware/fan_enable"/>
|
||||
</RunOnce>
|
||||
<TickAfterTimeout name="FanOffWithHysteresis"
|
||||
timeout="{FAN_TURN_OFF_TIMEOUT}">
|
||||
<Sequence>
|
||||
<Sequence name="HighSysTempSequence"
|
||||
_skipIf="cpu_temp <= CPU_FAN_ON_TEMP \
|
||||
&& driver_temp <= DRIVER_FAN_ON_TEMP">
|
||||
<CallSetBoolService name="EnableFan"
|
||||
data="true"
|
||||
service_name="hardware/fan_enable"
|
||||
_skipIf="fan_state"/>
|
||||
</Sequence>
|
||||
<CallSetBoolService name="DisableFan"
|
||||
data="false"
|
||||
service_name="hardware/fan_enable"
|
||||
_skipIf="cpu_temp > CPU_FAN_OFF_TEMP \
|
||||
|| driver_temp > DRIVER_FAN_OFF_TEMP \
|
||||
|| battery_health == POWER_SUPPLY_HEALTH_OVERHEAT \
|
||||
|| (!fan_state)"/>
|
||||
</Sequence>
|
||||
</TickAfterTimeout>
|
||||
</Sequence>
|
||||
</BehaviorTree>
|
||||
|
||||
<!-- Description of Node Models (used by Groot) -->
|
||||
<TreeNodesModel>
|
||||
<Action ID="CallSetBoolService"
|
||||
editable="true">
|
||||
<input_port name="data">true / false value</input_port>
|
||||
<input_port name="service_name">ROS service name</input_port>
|
||||
</Action>
|
||||
<Action ID="CallTriggerService"
|
||||
editable="true">
|
||||
<input_port name="service_name">ROS service name</input_port>
|
||||
</Action>
|
||||
<Action ID="SignalShutdown"
|
||||
editable="true">
|
||||
<input_port name="reason">reason to shutdown robot</input_port>
|
||||
</Action>
|
||||
<Decorator ID="TickAfterTimeout"
|
||||
editable="true">
|
||||
<input_port name="timeout">time in s to wait before ticking child again</input_port>
|
||||
</Decorator>
|
||||
</TreeNodesModel>
|
||||
|
||||
</root>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root BTCPP_format="4">
|
||||
<BehaviorTree ID="Shutdown">
|
||||
<Sequence>
|
||||
<ForceSuccess>
|
||||
<ShutdownHostsFromFile shutdown_hosts_file="{SHUTDOWN_HOSTS_FILE}"/>
|
||||
</ForceSuccess>
|
||||
<ExecuteCommand command="{SHUTDOWN_LOCALHOST_COMMAND}"
|
||||
timeout="1.0"/>
|
||||
</Sequence>
|
||||
</BehaviorTree>
|
||||
|
||||
<!-- Description of Node Models (used by Groot) -->
|
||||
<TreeNodesModel>
|
||||
<Action ID="ShutdownHostsFromFile"
|
||||
editable="true">
|
||||
<input_port name="shutdown_hosts_file">global path to YAML file with hosts to shutdown</input_port>
|
||||
</Action>
|
||||
<Action ID="ExecuteCommand" editable="true">
|
||||
<input_port name="command">command to execute</input_port>
|
||||
<input_port name="timeout">command timeout in seconds</input_port>
|
||||
</Action>
|
||||
</TreeNodesModel>
|
||||
|
||||
</root>
|
||||
@@ -0,0 +1,21 @@
|
||||
/**:
|
||||
lights_manager:
|
||||
ros__parameters:
|
||||
timer_frequency: 10.0
|
||||
bt_server_port: 5555
|
||||
battery:
|
||||
percent:
|
||||
window_len: 6
|
||||
threshold:
|
||||
low: 0.4
|
||||
critical: 0.1
|
||||
animation_period:
|
||||
low: 30.0
|
||||
charging_anim_step: 0.05
|
||||
ros_communication_timeout:
|
||||
availability: 1.0
|
||||
response: 1.0
|
||||
plugin_libs:
|
||||
- tick_after_timeout_bt_node
|
||||
ros_plugin_libs:
|
||||
- call_set_led_animation_service_bt_node
|
||||
@@ -0,0 +1,30 @@
|
||||
/**:
|
||||
safety_manager:
|
||||
ros__parameters:
|
||||
timer_frequency: 10.0
|
||||
bt_server_port: 6666
|
||||
fan_turn_off_timeout: 60.0
|
||||
battery:
|
||||
temp:
|
||||
window_len: 6
|
||||
cpu:
|
||||
temp:
|
||||
window_len: 6
|
||||
fan_on: 75.0
|
||||
fan_off: 70.0
|
||||
driver:
|
||||
temp:
|
||||
window_len: 6
|
||||
fan_on: 50.0
|
||||
fan_off: 45.0
|
||||
ros_communication_timeout:
|
||||
availability: 1.0
|
||||
response: 1.0
|
||||
plugin_libs:
|
||||
- execute_command_bt_node
|
||||
- shutdown_hosts_from_file_bt_node
|
||||
- signal_shutdown_bt_node
|
||||
- tick_after_timeout_bt_node
|
||||
ros_plugin_libs:
|
||||
- call_set_bool_service_bt_node
|
||||
- call_trigger_service_bt_node
|
||||
@@ -0,0 +1,4 @@
|
||||
hosts:
|
||||
- ip: 10.15.20.3
|
||||
port: 3003
|
||||
timeout: 10.0
|
||||
@@ -9,15 +9,28 @@
|
||||
## Panther Repository einrichten
|
||||
|
||||
```bash
|
||||
# Repository klonen
|
||||
git clone https://github.com/husarion/husarion_ugv_ros
|
||||
cd husarion_ugv_ros
|
||||
# Workspace erstellen und Repository klonen
|
||||
mkdir ~/husarion_ws
|
||||
cd ~/husarion_ws
|
||||
git clone -b ros2 https://github.com/husarion/husarion_ugv_ros.git src/husarion_ugv_ros
|
||||
|
||||
# Konfiguration des Environments
|
||||
# Echter Roboter
|
||||
export HUSARION_ROS_BUILD_TYPE=hardware
|
||||
|
||||
# Simulation
|
||||
export HUSARION_ROS_BUILD_TYPE=simulation
|
||||
|
||||
# Laden aller Abhängigkeiten nach src
|
||||
vcs import src < src/husarion_ugv_ros/husarion_ugv/${HUSARION_ROS_BUILD_TYPE}_deps.repos
|
||||
|
||||
# Dependencies installieren
|
||||
rosdep install --from-paths src --ignore-src -r -y
|
||||
sudo rosdep init
|
||||
rosdep update --rosdistro $ROS_DISTRO
|
||||
rosdep install --from-paths src -y -i
|
||||
|
||||
# Bauen
|
||||
colcon build
|
||||
colcon build --symlink-install --parallel-workers 1
|
||||
|
||||
# Sourcen
|
||||
source install/setup.bash
|
||||
@@ -42,4 +55,12 @@ source /opt/ros/jazzy/setup.bash
|
||||
source ~/husarion_ugv_ros/install/setup.bash
|
||||
export ROS_DOMAIN_ID=0
|
||||
export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
|
||||
```
|
||||
```
|
||||
|
||||
## Wichtige Links
|
||||
| Paket | Repository |
|
||||
|---|---|
|
||||
| Haupt-Treiber | https://github.com/husarion/husarion_ugv_ros |
|
||||
| UGV Configurator | https://github.com/husarion/husarion_ugv_configurator |
|
||||
| Panther Docker | https://hub.docker.com/r/husarion/panther |
|
||||
| Panther Gazebo Docker | https://hub.docker.com/r/husarion/panther-gazebo |
|
||||
+88
-3
@@ -1,5 +1,37 @@
|
||||
# Node-Architektur
|
||||
|
||||
| Symbol | Meaning |
|
||||
| ------ | ------------------------------- |
|
||||
| 🤖 | Available for physical robot |
|
||||
| 🖥️ | Available in simulation |
|
||||
| ⚙️ | Requires specific configuration |
|
||||
<!-- ⚙️ - in future will be default and can be removed -->
|
||||
|
||||
## Nodes
|
||||
|
||||
| 🤖 | 🖥️ | Node name | Description |
|
||||
| --- | --- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| ✅ | ❌ | `battery_driver` | Publishes battery state read from ADC unit. <br/> [*panther_batter/battery_driver_node*](./husarion_ugv_battery/include/husarion_ugv_battery/battery_driver_node.hpp) |
|
||||
| ✅ | ✅ | `controller_manager` | The Controller Manager performs two main functions. First, it manages controllers and their required interfaces, handling tasks like loading, activating, deactivating, and unloading. Second, it interacts with hardware components, ensuring access to their interfaces. This node manages the: `imu_broadcaster`, `joint_state_broadcaster`, `drive_controller`. <br/> *[controller_manager/controller_manager](https://github.com/ros-controls/ros2_control/blob/master/controller_manager)* |
|
||||
| ✅ | ✅ | `drive_controller` | Manages mobile robots with a differential or mecanum drive depending on the configuration. It converts velocity commands for the robot body into wheel commands for the base. It also calculates odometry from hardware feedback and shares it. <br/> *[diff_drive_controller/diff_drive_controller](https://github.com/ros-controls/ros2_controllers/tree/master/diff_drive_controller) or [mecanum_drive_controller/mecanum_drive_controller](https://github.com/husarion/husarion_controllers/tree/main/mecanum_drive_controller)* |
|
||||
| ✅ | ✅ | `ekf_filter` | The Extended Kalman Filter node is designed to fuse odometry data from various sources, including wheel encoders, IMU, and GPS. <br/> *[robot_localization/ekf_filter](https://github.com/cra-ros-pkg/robot_localization)* |
|
||||
| ✅ | ❌ | `gps` | Node responsible for parsing NMEA strings and publishing standard ROS NavSat message types. <br/> *[nmea_navsat_driver/nmea_navsat_driver](https://github.com/ros-drivers/nmea_navsat_driver/tree/ros2/src/libnmea_navsat_driver)* |
|
||||
| ❌ | ✅ | `gz_bridge` | Convert and transmit data between ROS and Gazebo <br/> *[ros_gz_bridge/parameter_bridge](https://github.com/gazebosim/ros_gz/tree/ros2/ros_gz_bridge)* |
|
||||
| ❌ | ✅ | `gz_ros2_control` | Responsible for integrating the ros2_control controller architecture with the Gazebo simulator. <br/> [gz_ros2_control/gz_ros2_control](https://github.com/ros-controls/gz_ros2_control/tree/master/gz_ros2_control/src) |
|
||||
| ❌ | ✅ | `gz_estop_gui` | The node is part of the Gazebo GUI plugin, enabling easy E-stop state modifications directly within the simulation. <br/> [husarion_ugv_gazebo/EStop](./husarion_ugv_gazebo/src/gui/e_stop.cpp) |
|
||||
| ✅ | ❌ | `hardware_controller` | Plugin responsible for communicating with engine controllers via the CAN bus and providing E-Stop functionalities. <br/> *[husarion_ugv_hardware_interfaces/{robot_model}System](./husarion_ugv_hardware_interfaces/src/robot_system/)* |
|
||||
| ✅ | ✅ | `imu_broadcaster` | Publishes readings of IMU sensors. <br/> *[imu_sensor_broadcaster/imu_sensor_broadcaster](https://github.com/ros-controls/ros2_controllers/tree/master/imu_sensor_broadcaster)* |
|
||||
| ✅ | ✅ | `joint_state_broadcaster` | Reads all state interfaces and reports them on specific topics. <br/> *[joint_state_broadcaster/joint_state_broadcaster](https://github.com/ros-controls/ros2_controllers/tree/master/joint_state_broadcaster)* |
|
||||
| ✅ | ✅ | `lights_container` | Node for managing ROS components. This node manages: `lights_controller`, `lights_driver`. <br/>[*rclcpp_components/component_container*](https://github.com/ros2/rclcpp/tree/rolling/rclcpp_components) |
|
||||
| ✅ | ✅ | `lights_controller` | This node is responsible for processing animations and publishing frames to `light_driver` node. <br/> [*husarion_ugv_lights/LightsControllerNode*](./husarion_ugv_lights/include/husarion_ugv_lights/lights_controller_node.hpp) |
|
||||
| ✅ | ❌ | `lights_driver` | This node is responsible for displaying frames on the robot's lights. <br/> [*husarion_ugv_lights/LightsDriverNode*](./husarion_ugv_lights/include/husarion_ugv_lights/lights_driver_node.hpp) |
|
||||
| ✅ | ✅ | `lights_manager` | Node responsible for managing lights animation scheduling. <br/> [husarion_ugv_manager/lights_manager](./husarion_ugv_manager/include/husarion_ugv_manager/lights_manager_node.hpp) |
|
||||
| ✅ | ✅ | ⚙️ `navsat_transform` ⚙️ | It converts raw GPS data into odometry data and publishes corrected GPS positions based on sensor data at a higher frequency. <br/> *[robot_localization/navsat_transform](https://github.com/cra-ros-pkg/robot_localization)* |
|
||||
| ✅ | ✅ | `robot_state_publisher` | Broadcasts a robot's state to tf2 using a provided URDF model and joint states. It updates the model and broadcasts poses for fixed and movable joints to tf2 topics. <br/> *[robot_state_publisher/robot_state_publisher](https://github.com/ros/robot_state_publisher)* |
|
||||
| ✅ | ❌ | `safety_manager` | Node responsible for managing safety features, and software shutdown of components. <br/> *[husarion_ugv_manager/safety_manager_node](./husarion_ugv_manager/include/husarion_ugv_manager/safety_manager_node.hpp)* |
|
||||
| ✅ | ❌ | `system_monitor` | Publishes system state of the Built-in Computer such as CPU usage, RAM memory usage, disk usage and CPU temperature. <br/> *[husarion_ugv_diagnostics/system_monitor_node](./husarion_ugv_diagnostics/include/husarion_ugv_diagnostics/system_monitor_node.hpp)* |
|
||||
|
||||
|
||||
## Aufgabenverteilung
|
||||
|
||||
```
|
||||
@@ -23,18 +55,71 @@ panther_bringup your_workspace
|
||||
# Standard Bringup (läuft automatisch als Service auf dem RPi)
|
||||
ros2 launch panther_bringup bringup.launch.py
|
||||
|
||||
# Bringup für die Simulation
|
||||
ros2 launch husarion_ugv_gazebo simulation.launch.py
|
||||
|
||||
# Service Status prüfen
|
||||
systemctl status panther_bringup.service
|
||||
|
||||
# Mit Simulation
|
||||
ros2 launch panther_gazebo simulate.launch.py
|
||||
|
||||
# Mit optionalen Argumenten
|
||||
ros2 launch panther_bringup bringup.launch.py \
|
||||
wheel_config_path:=/path/to/wheel_config.yaml \
|
||||
controller_config_path:=/path/to/controller.yaml
|
||||
```
|
||||
|
||||
### Launch Arguments
|
||||
|
||||
Launch arguments are largely common to both simulation and physical robot. However, there is a group of arguments that apply only to hardware or only to the simulator. Below is a legend to the tables with all launch arguments.
|
||||
|
||||
| Symbol | Meaning |
|
||||
| ------ | ---------------------------- |
|
||||
| 🤖 | Available for physical robot |
|
||||
| 🖥️ | Available in simulation |
|
||||
|
||||
| 🤖 | 🖥️ | Argument | Description <br/> ***Type:*** `Default` |
|
||||
| --- | --- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| ❌ | ✅ | `add_world_transform` | Adds a world frame that connects the tf trees of individual robots (useful when running multiple robots). <br/> ***bool:*** `False` |
|
||||
| ✅ | ✅ | `animations_config_path` | Path to a YAML file with a description of led configuration. This file includes definition of robot panels, virtual segments and default animations. <br/> ***string:*** [`{robot_model}_animations.yaml`](../../code/husarion_ugv_lights/) |
|
||||
| ❌ | ✅ | `battery_config_path` | Path to the Gazebo `LinearBatteryPlugin` configuration file. This configuration is intended for use in simulations only. <br/> ***string:*** `None` |
|
||||
| ✅ | ✅ | `components_config_path` | Additional components configuration file. Components described in this file are dynamically included in robot's URDF. Available options are described in [the manual](https://husarion.com/manuals/panther/panther-options). <br/> ***string:*** [`components.yaml`](../../code/husarion_ugv_descripton/config/components.yaml) |
|
||||
| ✅ | ✅ | `controller_config_path` | Path to controller configuration file. A path to custom configuration can be specified here. <br/> ***string:*** [`{wheel_type}_controller.yaml`](../../code/husarion_ugv_controller/config/) |
|
||||
| ✅ | ✅ | `disable_manager` | Enable or disable manager_bt_node. <br/> ***bool:*** `False` |
|
||||
| ✅ | ✅ | `fuse_gps` | Include GPS for data fusion. <br/> ***bool:*** `False` |
|
||||
| ❌ | ✅ | `gz_bridge_config_path` | Path to the parameter_bridge configuration file. <br/> ***string:*** [`gz_bridge.yaml`](../../code//husarion_ugv_gazebo/config/gz_bridge.yaml) |
|
||||
| ❌ | ✅ | `gz_gui` | Run simulation with specific GUI layout. <br/> ***string:*** [`teleop.config`](../../code/husarion_gz_worlds/config/teleop.config) |
|
||||
| ❌ | ✅ | `gz_headless_mode` | Run the simulation in headless mode. Useful when a GUI is not needed or to reduce the number of calculations. <br/> ***bool:*** `False` |
|
||||
| ❌ | ✅ | `gz_log_level` | Adjust the level of console output. <br/> ***int:*** `1` (choices: `0`, `1`, `2`, `3`, `4`) |
|
||||
| ❌ | ✅ | `gz_world` | Absolute path to SDF world file. <br/> ***string:*** [`husarion_world.sdf`](../../code/husarion_gz_worlds/worlds/husarion_world.sdf) |
|
||||
| ✅ | ✅ | `launch_nmea_gps` | Whether to launch the NMEA NavSat driver node. Advisable when the robot is equipped with the [ANT02](https://husarion.com/manuals/panther/panther-options/#ant02---wi-fi--lte--gps). <br/> ***bool:*** `False` |
|
||||
| ✅ | ✅ | `lights_bt_project_path` | Path to BehaviorTree project file, responsible for lights management. <br/> ***string:*** [`LightsBT.btproj`](../../code/husarion_ugv_manager/behavior_trees/LightsBT.btproj) |
|
||||
| ✅ | ✅ | `localization_config_path` | Specify the path to the localization configuration file. <br/> ***string:*** [`relative_localization.yaml`](../../code//husarion_ugv_localization/config/relative_localization.yaml) |
|
||||
| ✅ | ✅ | `localization_mode` | Specifies the localization mode: <br/>- 'relative' `odometry/filtered` data is relative to the initial position and orientation. <br/>- 'enu' `odometry/filtered` data is relative to initial position and ENU (East North Up) orientation. <br/> ***string:*** `relative` (choices: `relative`, `enu`) |
|
||||
| ✅ | ✅ | `log_level` | Sets verbosity of launched nodes. <br/> ***string:*** `INFO`
|
||||
| ✅ | ✅ | `namespace` | Add namespace to all launched nodes. <br/> ***string:*** `env(ROBOT_NAMESPACE)` |
|
||||
| ✅ | ✅ | `publish_robot_state` | Whether to publish the default URDF of specified robot. <br/> ***bool:*** `True` |
|
||||
| ❌ | ✅ | `robot_model` | Specify robot model type. <br/> ***string:*** `env(ROBOT_MODEL_NAME)` (choices: `lynx`, `panther`) |
|
||||
| ✅ | ✅ | `safety_bt_project_path` | Path to BehaviorTree project file, responsible for safety and shutdown management. <br/> ***string:*** [`SafetyBT.btproj`](../../code/husarion_ugv_manager/behavior_trees/SafetyBT.btproj) |
|
||||
| ✅ | ✅ | `shutdown_hosts_config_path` | Path to file with list of hosts to request shutdown. <br/> ***string:*** [`shutdown_hosts.yaml`](../../code/husarion_ugv_manager/config/shutdown_hosts.yaml) |
|
||||
| ✅ | ✅ | `use_ekf` | Enable or disable EKF (Extended Kalman Filter). <br/> ***bool:*** `True` |
|
||||
| ❌ | ✅ | `use_joint_state_publisher` | Flag enabling joint_state_publisher to publish information about the wheel position. Should be false when there is a controller that sends this information. <br/> ***bool:*** `False` |
|
||||
| ❌ | ✅ | `use_joint_state_publisher_gui` | Flag enabling joint_state_publisher_gui to publish information about the wheel position. Should be false when there is a controller that sends this information. <br/> ***bool:*** `False` |
|
||||
| ❌ | ✅ | `use_rviz` | Run RViz simultaneously. <br/> ***bool:*** `True` |
|
||||
| ✅ | ✅ | `use_sim` | Whether simulation is used. <br/> ***bool:*** `False` |
|
||||
| ✅ | ✅ | `user_led_animations_path` | Path to a YAML file with a description of the user-defined animations. <br/> ***string:*** `''` |
|
||||
| ✅ | ✅ | `wheel_config_path` | Path to wheel configuration file. <br/> ***string:*** [`{wheel_type}.yaml`](../../code/husarion_ugv_description/config) |
|
||||
| ✅ | ✅ | `wheel_type` | Specify the wheel type. If the selected wheel type is not 'custom', the wheel_config_path and controller_config_path arguments will be automatically adjusted and can be omitted. <br/> ***string:*** `WH01` (for Panther), `WH05` (for Lynx) (choices: `WH01`, `WH02`, `WH04`, `WH05`, `custom`) |
|
||||
| ❌ | ✅ | `x` | Initial robot position in the global 'x' axis. <br/> ***float:*** `0.0` |
|
||||
| ❌ | ✅ | `y` | Initial robot position in the global 'y' axis. <br/> ***float:*** `-2.0` |
|
||||
| ❌ | ✅ | `z` | Initial robot position in the global 'z' axis. <br/> ***float:*** `0.2` |
|
||||
| ❌ | ✅ | `roll` | Initial robot 'roll' orientation. <br/> ***float:*** `0.0` |
|
||||
| ❌ | ✅ | `pitch` | Initial robot 'pitch' orientation. <br/> ***float:*** `0.0` |
|
||||
| ❌ | ✅ | `yaw` | Initial robot 'yaw' orientation. <br/> ***float:*** `0.0` |
|
||||
|
||||
> [!TIP]
|
||||
>
|
||||
> To read the arguments for individual packages, add the `-s` flag to the `ros2 launch` command (e.g. `ros2 launch husarion_ugv_bringup bringup.launch.py -s`)
|
||||
|
||||
|
||||
## Wichtige Repositories
|
||||
|
||||
| Paket | Repository |
|
||||
|
||||
@@ -1,49 +1,76 @@
|
||||
# ROS 2 Topics & Services
|
||||
|
||||
## Bewegung & Odometrie
|
||||
| Symbol | Meaning |
|
||||
| ------ | ------------------------------- |
|
||||
| 🤖 | Available for physical robot |
|
||||
| 🖥️ | Available in simulation |
|
||||
| ⚙️ | Requires specific configuration |
|
||||
<!-- ⚙️ - in future will be default and can be removed -->
|
||||
|
||||
| Topic | Typ | Richtung | Beschreibung |
|
||||
|---|---|---|---|
|
||||
| `/cmd_vel` | `geometry_msgs/Twist` | → Roboter | Bewegungsbefehle |
|
||||
| `/panther/odom` | `nav_msgs/Odometry` | ← Roboter | Odometrie |
|
||||
| `/panther/joint_states` | `sensor_msgs/JointState` | ← Roboter | Radzustand |
|
||||
## Topics
|
||||
|
||||
## Hardware & Status
|
||||
| 🤖 | 🖥️ | Topic | Description |
|
||||
| --- | --- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| ✅ | ✅ | `battery/battery_status` | Mean values of both batteries will be published if the robot has two batteries. Otherwise, the state of the single battery will be published.<br/> [*sensor_msgs/BatteryState*](https://docs.ros2.org/latest/api/sensor_msgs/msg/BatteryState.html) |
|
||||
| ✅ | ❌ | `battery/charging_status` | Battery charging status value.<br/> [*husarion_ugv_msgs/ChargingStatus*](husarion_ugv_msgs/msg/ChargingStatus.msg) |
|
||||
| ✅ | ✅ | `cmd_vel` | Command velocity value.<br/> [*geometry_msgs/TwistStamped*](https://docs.ros2.org/latest/api/geometry_msgs/msg/TwistStamped.html) |
|
||||
| ✅ | ✅ | `diagnostics` | Diagnostic data.<br/> [*diagnostic_msgs/DiagnosticArray*](https://docs.ros2.org/latest/api/diagnostic_msgs/msg/DiagnosticArray.html) |
|
||||
| ✅ | ✅ | `dynamic_joint_states` | Information about the state of various movable joints in a robotic system.<br/> [*control_msgs/DynamicJointState*](https://github.com/ros-controls/control_msgs/blob/master/control_msgs/msg/DynamicJointState.msg) |
|
||||
| ✅ | ✅ | ⚙️ `gps/filtered` ⚙️ | Filtered GPS position after fusing odometry data.<br/> [*sensor_msgs/NavSatFix*](https://docs.ros2.org/latest/api/sensor_msgs/msg/NavSatFix.html) |
|
||||
| ✅ | ✅ | ⚙️ `gps/fix` ⚙️ | Raw GPS data.<br/> [*sensor_msgs/NavSatFix*](https://docs.ros2.org/latest/api/sensor_msgs/msg/NavSatFix.html) |
|
||||
| ✅ | ❌ | `gps/time_reference` | The timestamp from the GPS device.<br/> [*sensor_msgs/TimeReference*](https://docs.ros2.org/latest/api/sensor_msgs/msg/TimeReference.html) |
|
||||
| ✅ | ❌ | `gps/vel` | Velocity output from the GPS device.<br/> [*geometry_msgs/TwistStamped*](https://docs.ros2.org/latest/api/geometry_msgs/msg/TwistStamped.html) |
|
||||
| ✅ | ✅ | `hardware/e_stop` | Current E-stop state.<br/> [*std_msgs/Bool*](https://docs.ros2.org/latest/api/std_msgs/msg/Bool.html). |
|
||||
| ✅ | ❌ | `hardware/io_state` | Current IO state.<br/> [*husarion_ugv_msgs/IOState*](husarion_ugv_msgs/msg/IOState.msg) |
|
||||
| ✅ | ✅ | `hardware/robot_driver_state` | Current motor controllers' state and error flags. Subscribed if using Roboteq motor controllers data.<br/> [*husarion_ugv_msgs/RobotDriverState*](husarion_ugv_msgs/msg/RobotDriverState.msg) |
|
||||
| ✅ | ✅ | `imu/data` | Filtered IMU data.<br/> [*sensor_msgs/Imu*](https://docs.ros2.org/latest/api/sensor_msgs/msg/Imu.html) |
|
||||
| ✅ | ✅ | `joint_states` | Provides information about the state of various joints in a robotic system.<br/> [*sensor_msgs/JointState*](https://docs.ros2.org/latest/api/sensor_msgs/msg/JointState.html) |
|
||||
| ✅ | ✅ | `lights/channel_1_frame` | Frame to be displayed on robot Front Bumper Lights.<br/> [*sensor_msgs/Image*](https://docs.ros2.org/latest/api/sensor_msgs/msg/Image.html) |
|
||||
| ✅ | ✅ | `lights/channel_2_frame` | Frame to be displayed on robot Rear Bumper Lights.<br/> [*sensor_msgs/Image*](https://docs.ros2.org/latest/api/sensor_msgs/msg/Image.html) |
|
||||
| ✅ | ✅ | `localization/set_pose` | Sets the pose of the EKF node.<br/> [*geometry_msgs/PoseWithCovarianceStamped*](https://docs.ros2.org/latest/api/geometry_msgs/msg/PoseWithCovarianceStamped.html) |
|
||||
| ✅ | ✅ | `odometry/filtered` | Contains information about the filtered position and orientation. When `localization_mode` is `relative`, the position and orientation are relative to the starting point. When `localization_mode` is `enu`, the orientation is relative to the east-north-up (ENU) coordinates.<br/> [*nav_msgs/Odometry*](https://docs.ros2.org/latest/api/nav_msgs/msg/Odometry.html) |
|
||||
| ✅ | ✅ | `odometry/wheels` | Robot odometry calculated from wheels.<br/> [*nav_msgs/Odometry*](https://docs.ros2.org/latest/api/nav_msgs/msg/Odometry.html) |
|
||||
| ✅ | ✅ | `robot_description` | Contains information about robot description from URDF file. <br/> [*std_msgs/String*](https://docs.ros2.org/latest/api/std_msgs/msg/String.html) |
|
||||
| ✅ | ❌ | `system_status` | State of the system, including Built-in Computer's CPU temperature and load. <br/> [*husarion_ugv_msgs/SystemStatus*](husarion_ugv_msgs/msg/SystemStatus.msg) |
|
||||
| ✅ | ✅ | `tf` | Transforms of robot system.<br/> [*tf2_msgs/TFMessage*](https://docs.ros2.org/latest/api/tf2_msgs/msg/TFMessage.html) |
|
||||
| ✅ | ✅ | `tf_static` | Static transforms of robot system.<br/> [*tf2_msgs/TFMessage*](https://docs.ros2.org/latest/api/tf2_msgs/msg/TFMessage.html) |
|
||||
|
||||
| Topic | Typ | Beschreibung |
|
||||
|---|---|---|
|
||||
| `/panther/battery_state` | `sensor_msgs/BatteryState` | Akkustand |
|
||||
| `/panther/e_stop` | `std_msgs/Bool` | Notaus Status |
|
||||
| `/panther/hardware/io_state` | custom | IO Status |
|
||||
| `/panther/hardware/motor_controllers_state` | custom | Motorstatus |
|
||||
| `/panther/imu/data` | `sensor_msgs/Imu` | Eingebaute IMU |
|
||||
| `/panther/system_status` | custom | Systemstatus |
|
||||
### Hidden topics
|
||||
|
||||
## GPS
|
||||
| 🤖 | 🖥️ | Topic | Description |
|
||||
| --- | --- | ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| ✅ | ❌ | `_battery/battery_1_status_raw` | First battery raw state. <br/> [_sensor_msgs/BatteryState_](https://docs.ros2.org/latest/api/sensor_msgs/msg/BatteryState.html) |
|
||||
| ✅ | ❌ | `_battery/battery_2_status_raw` | Second battery raw state. Published if second battery detected. <br/> [_sensor_msgs/BatteryState_](https://docs.ros2.org/latest/api/sensor_msgs/msg/BatteryState.html) |
|
||||
| ✅ | ❌ | `_gps/heading` | Not supported for current configuration. <br/> [_geometry_msgs/QuaternionStamped_](https://docs.ros2.org/latest/api/geometry_msgs/msg/QuaternionStamped.html) |
|
||||
| ✅ | ✅ | ⚙️ `_odometry/gps` ⚙️ | Transformed raw GPS data to odometry format. <br/> [_nav_msgs/Odometry_](https://docs.ros2.org/latest/api/nav_msgs/msg/Odometry.html) |
|
||||
|
||||
| Topic | Typ | Beschreibung |
|
||||
|---|---|---|
|
||||
| `/fix` | `sensor_msgs/NavSatFix` | GPS Position |
|
||||
| `/fix_velocity` | `geometry_msgs/TwistWithCovarianceStamped` | GPS Geschwindigkeit |
|
||||
| `/odometry/gps` | `nav_msgs/Odometry` | GPS nach Transform |
|
||||
| `/odometry/filtered` | `nav_msgs/Odometry` | Fusionierte Odometrie |
|
||||
|
||||
## LEDs
|
||||
|
||||
| Topic | Beschreibung |
|
||||
|---|---|
|
||||
| `/panther/lights/driver/front_panel_frame` | Vorderes LED Panel |
|
||||
| `/panther/lights/driver/rear_panel_frame` | Hinteres LED Panel |
|
||||
|
||||
## Services
|
||||
|
||||
```bash
|
||||
# E-Stop auslösen
|
||||
ros2 service call /panther/hardware/e_stop_trigger std_srvs/srv/Trigger {}
|
||||
|
||||
# E-Stop zurücksetzen
|
||||
ros2 service call /panther/hardware/e_stop_reset std_srvs/srv/Trigger {}
|
||||
```
|
||||
| 🤖 | 🖥️ | Service | Description |
|
||||
| --- | --- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| ✅ | ✅ | `controller_manager/configure_controller` | Manage lifecycle transition. <br/> [controller_manager_msgs/srv/ConfigureController](https://github.com/ros-controls/ros2_control/tree/master/controller_manager_msgs) |
|
||||
| ✅ | ✅ | `controller_manager/list_controller_types` | Output the available controller types and their base classes. <br/> [controller_manager_msgs/srv/ListControllerTypes](https://github.com/ros-controls/ros2_control/tree/master/controller_manager_msgs) |
|
||||
| ✅ | ✅ | `controller_manager/list_controllers` | Output the list of loaded controllers, their type and status. <br/> [controller_manager_msgs/srv/ListControllers](https://github.com/ros-controls/ros2_control/tree/master/controller_manager_msgs) |
|
||||
| ✅ | ✅ | `controller_manager/list_hardware_components` | Output the list of available hardware components. <br/> [controller_manager_msgs/srv/ListHardwareComponents](https://github.com/ros-controls/ros2_control/tree/master/controller_manager_msgs) |
|
||||
| ✅ | ✅ | `controller_manager/list_hardware_interfaces` | Output the list of available command and state interfaces. <br/> [controller_manager_msgs/srv/ListHardwareInterfaces](https://github.com/ros-controls/ros2_control/tree/master/controller_manager_msgs) |
|
||||
| ✅ | ✅ | `controller_manager/load_controller` | Load a controller in a controller manager. <br/> [controller_manager_msgs/srv/LoadController](https://github.com/ros-controls/ros2_control/tree/master/controller_manager_msgs) |
|
||||
| ✅ | ✅ | `controller_manager/reload_controller_libraries` | Reload controller libraries. <br/> [controller_manager_msgs/srv/ReloadControllerLibraries](https://github.com/ros-controls/ros2_control/tree/master/controller_manager_msgs) |
|
||||
| ✅ | ✅ | `controller_manager/set_hardware_component_state` | Adjust the state of the hardware component. <br/> [controller_manager_msgs/srv/SetHardwareComponentState](https://github.com/ros-controls/ros2_control/tree/master/controller_manager_msgs) |
|
||||
| ✅ | ✅ | `controller_manager/switch_controller` | Switch controllers in a controller manager. <br/> [controller_manager_msgs/srv/SwitchController](https://github.com/ros-controls/ros2_control/tree/master/controller_manager_msgs) |
|
||||
| ✅ | ✅ | `controller_manager/unload_controller` | Unload a controller in a controller manager. <br/> [controller_manager_msgs/srv/UnloadController](https://github.com/ros-controls/ros2_control/tree/master/controller_manager_msgs) |
|
||||
| ✅ | ❌ | `hardware/aux_power_enable` | Enables or disables AUX power. <br/> [std_srvs/srv/SetBool](https://docs.ros2.org/latest/api/std_srvs/srv/SetBool.html) |
|
||||
| ✅ | ❌ | `hardware/charger_enable` | Enables or disables external charger. <br/> [std_srvs/srv/SetBool](https://docs.ros2.org/latest/api/std_srvs/srv/SetBool.html) |
|
||||
| ✅ | ❌ | `hardware/digital_power_enable` | Enables or disables digital power. <br/> [std_srvs/srv/SetBool](https://docs.ros2.org/latest/api/std_srvs/srv/SetBool.html) |
|
||||
| ✅ | ✅ | `hardware/e_stop_reset` | Resets E-stop. <br/> [std_srvs/srv/Trigger](https://docs.ros2.org/latest/api/std_srvs/srv/Trigger.html) |
|
||||
| ✅ | ✅ | `hardware/e_stop_trigger` | Triggers E-stop. <br/> [std_srvs/srv/Trigger](https://docs.ros2.org/latest/api/std_srvs/srv/Trigger.html) |
|
||||
| ✅ | ❌ | `hardware/fan_enable` | Enables or disables fan. <br/> [std_srvs/srv/SetBool](https://docs.ros2.org/latest/api/std_srvs/srv/SetBool.html) |
|
||||
| ✅ | ❌ | `hardware/motor_torque_enable` | Allows to enable/disable motor torque when the E-Stop is triggered. <br/> [std_srvs/srv/SetBool](https://docs.ros2.org/latest/api/std_srvs/srv/SetBool.html) |
|
||||
| ✅ | ✅ | `lights/set_animation` | Sets LED animation. <br/> [husarion_ugv_msgs/srv/SetLEDAnimation](husarion_ugv_msgs/srv/SetLEDAnimation.srv) |
|
||||
| ✅ | ✅ | `localization/enable` | Enable EKF node. <br/> [std_srvs/srv/Empty](https://docs.ros2.org/latest/api/std_srvs/srv/Empty.html) |
|
||||
| ✅ | ❌ | `lights/set_brightness` | Sets global LED brightness, value ranges from **0.0** to **1.0**. <br/> [husarion_ugv_msgs/SetLEDBrightness](husarion_ugv_msgs/srv/SetLEDBrightness.srv) |
|
||||
| ✅ | ✅ | `localization/set_pose` | Set pose of EKF node. <br/> [robot_localization/srv/SetPose](https://github.com/cra-ros-pkg/robot_localization/tree/ros2) |
|
||||
| ✅ | ✅ | `localization/toggle` | Toggle filter processing in the EKF node. <br/> [robot_localization/srv/ToggleFilterProcessing](https://github.com/cra-ros-pkg/robot_localization/tree/ros2) |
|
||||
|
||||
## Nützliche Commands
|
||||
|
||||
|
||||
Reference in New Issue
Block a user