-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Working multi robot sim * Use wildcards for param files Added robot name to Create 3 buttons * Dock model is now called <robot_name>/standard_dock Namespaced dock frame id in pose republisher * Added namespacing support to Rviz config Rviz now launches for each robot spawn Added static transform for prefixed odom and base_link frames Added offset launch module in irobot_create_common_bringup Fixed spawning robots with different x, y, and yaw positions * Linter fixes * Added namespace launch arg. Defaults to 'robot_name' in create3_spawn create3_ignition defaults to spawning 'create3' robot without namespace * Frame id fixes * Changed robot name to be <namespace>/create3, rather than using a robot_name arg Changed dock name to be <namespace>/standard_dock Remove robot_name arg, use just namespace for everything * Fixed bumper Use ogre2 as sensor render engine Reduce max_step_size to 3ms * Linter fixes * Fixed import order * Multi robot support for gazebo classic * Updated README * Fixed import order
- Loading branch information
1 parent
f8ab281
commit 7fccefe
Showing
60 changed files
with
1,287 additions
and
730 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 19 additions & 18 deletions
37
irobot_create_common/irobot_create_common_bringup/config/hazard_vector_params.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
--- | ||
hazards_vector_publisher: | ||
ros__parameters: | ||
# Hazard detection publisher topic | ||
publisher_topic: /hazard_detection | ||
publish_rate: 62.0 | ||
subscription_topics: | ||
# Bumper topic | ||
- _internal/bumper/event | ||
# Cliff topics | ||
- _internal/cliff_front_left/event | ||
- _internal/cliff_front_right/event | ||
- _internal/cliff_side_left/event | ||
- _internal/cliff_side_right/event | ||
# Wheel drop topics | ||
- _internal/wheel_drop/left_wheel/event | ||
- _internal/wheel_drop/right_wheel/event | ||
# Backup limit topic | ||
- _internal/backup_limit | ||
/**: | ||
hazards_vector_publisher: | ||
ros__parameters: | ||
# Hazard detection publisher topic | ||
publisher_topic: hazard_detection | ||
publish_rate: 62.0 | ||
subscription_topics: | ||
# Bumper topic | ||
- _internal/bumper/event | ||
# Cliff topics | ||
- _internal/cliff_front_left/event | ||
- _internal/cliff_front_right/event | ||
- _internal/cliff_side_left/event | ||
- _internal/cliff_side_right/event | ||
# Wheel drop topics | ||
- _internal/wheel_drop/left_wheel/event | ||
- _internal/wheel_drop/right_wheel/event | ||
# Backup limit topic | ||
- _internal/backup_limit |
29 changes: 15 additions & 14 deletions
29
irobot_create_common/irobot_create_common_bringup/config/ir_intensity_vector_params.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
--- | ||
ir_intensity_vector_publisher: | ||
ros__parameters: | ||
# IR intensity publisher topic | ||
publisher_topic: /ir_intensity | ||
publish_rate: 62.0 | ||
subscription_topics: | ||
# IR intensity topics | ||
- _internal/ir_intensity_front_center_left | ||
- _internal/ir_intensity_front_center_right | ||
- _internal/ir_intensity_front_left | ||
- _internal/ir_intensity_front_right | ||
- _internal/ir_intensity_left | ||
- _internal/ir_intensity_right | ||
- _internal/ir_intensity_side_left | ||
/**: | ||
ir_intensity_vector_publisher: | ||
ros__parameters: | ||
# IR intensity publisher topic | ||
publisher_topic: ir_intensity | ||
publish_rate: 62.0 | ||
subscription_topics: | ||
# IR intensity topics | ||
- _internal/ir_intensity_front_center_left | ||
- _internal/ir_intensity_front_center_right | ||
- _internal/ir_intensity_front_left | ||
- _internal/ir_intensity_front_right | ||
- _internal/ir_intensity_left | ||
- _internal/ir_intensity_right | ||
- _internal/ir_intensity_side_left |
13 changes: 7 additions & 6 deletions
13
irobot_create_common/irobot_create_common_bringup/config/kidnap_estimator_params.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
--- | ||
kidnap_estimator_publisher: | ||
ros__parameters: | ||
# Kidnap status publisher topic | ||
kidnap_status_topic: /kidnap_status | ||
# Subscription topics | ||
hazard_topic: /hazard_detection | ||
/**: | ||
kidnap_estimator_publisher: | ||
ros__parameters: | ||
# Kidnap status publisher topic | ||
kidnap_status_topic: kidnap_status | ||
# Subscription topics | ||
hazard_topic: hazard_detection |
13 changes: 7 additions & 6 deletions
13
irobot_create_common/irobot_create_common_bringup/config/mock_params.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
--- | ||
mock_publisher: | ||
ros__parameters: | ||
# Mock slip status publisher topic | ||
slip_status_topic: /slip_status | ||
# Publishers rate | ||
slip_status_publish_rate: 62.0 | ||
/**: | ||
mock_publisher: | ||
ros__parameters: | ||
# Mock slip status publisher topic | ||
slip_status_topic: slip_status | ||
# Publishers rate | ||
slip_status_publish_rate: 62.0 |
43 changes: 22 additions & 21 deletions
43
irobot_create_common/irobot_create_common_bringup/config/robot_state_params.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
--- | ||
robot_state: | ||
ros__parameters: | ||
# Stop status publisher topic | ||
stop_status_topic: /stop_status | ||
# Mock battery state publisher topic | ||
battery_state_topic: /battery_state | ||
# Publishers rate | ||
kidnap_status_publish_rate: 1.0 | ||
stop_status_publish_rate: 62.0 | ||
battery_state_publish_rate: 0.1 | ||
# Subscription topics | ||
dock_topic: /dock_status | ||
wheel_vels_topic: /odom | ||
# Stop status position difference tolerance | ||
linear_velocity_tolerance: 0.01 | ||
angular_velocity_tolerance: 0.1 | ||
# Battery parameters | ||
full_charge_percentage: 1.0 | ||
battery_high_percentage: 0.9 | ||
# Dock Parameters | ||
undocked_charge_limit: 0.03 | ||
/**: | ||
robot_state: | ||
ros__parameters: | ||
# Stop status publisher topic | ||
stop_status_topic: stop_status | ||
# Mock battery state publisher topic | ||
battery_state_topic: battery_state | ||
# Publishers rate | ||
kidnap_status_publish_rate: 1.0 | ||
stop_status_publish_rate: 62.0 | ||
battery_state_publish_rate: 0.1 | ||
# Subscription topics | ||
dock_topic: dock_status | ||
wheel_vels_topic: odom | ||
# Stop status position difference tolerance | ||
linear_velocity_tolerance: 0.01 | ||
angular_velocity_tolerance: 0.1 | ||
# Battery parameters | ||
full_charge_percentage: 1.0 | ||
battery_high_percentage: 0.9 | ||
# Dock Parameters | ||
undocked_charge_limit: 0.03 |
19 changes: 10 additions & 9 deletions
19
irobot_create_common/irobot_create_common_bringup/config/ui_mgr_params.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
--- | ||
ui_mgr: | ||
ros__parameters: | ||
# Buttons publisher topic | ||
button_topic: /interface_buttons | ||
# Publishers rate | ||
buttons_publish_rate: 1.0 | ||
# Subscription topics | ||
lightring_topic: /cmd_lightring | ||
audio_topic: /cmd_audio | ||
/**: | ||
ui_mgr: | ||
ros__parameters: | ||
# Buttons publisher topic | ||
button_topic: interface_buttons | ||
# Publishers rate | ||
buttons_publish_rate: 1.0 | ||
# Subscription topics | ||
lightring_topic: cmd_lightring | ||
audio_topic: cmd_audio |
25 changes: 13 additions & 12 deletions
25
irobot_create_common/irobot_create_common_bringup/config/wheel_status_params.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
--- | ||
wheel_status_publisher: | ||
ros__parameters: | ||
# Publish rate | ||
publish_rate: 62.0 | ||
# Encoder resolution | ||
encoder_resolution: 508.8 | ||
# Wheel radius | ||
wheel_radius: 0.03575 | ||
# Wheels angular velocity topic | ||
velocity_topic: /wheel_vels | ||
# Wheels' net encoder ticks topic | ||
ticks_topic: /wheel_ticks | ||
/**: | ||
wheel_status_publisher: | ||
ros__parameters: | ||
# Publish rate | ||
publish_rate: 62.0 | ||
# Encoder resolution | ||
encoder_resolution: 508.8 | ||
# Wheel radius | ||
wheel_radius: 0.03575 | ||
# Wheels angular velocity topic | ||
velocity_topic: wheel_vels | ||
# Wheels' net encoder ticks topic | ||
ticks_topic: wheel_ticks |
Empty file.
33 changes: 33 additions & 0 deletions
33
irobot_create_common/irobot_create_common_bringup/irobot_create_common_bringup/namespace.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
from typing import Union | ||
|
||
from launch import LaunchContext, SomeSubstitutionsType, Substitution | ||
|
||
|
||
class GetNamespacedName(Substitution): | ||
def __init__( | ||
self, | ||
namespace: Union[SomeSubstitutionsType, str], | ||
name: Union[SomeSubstitutionsType, str] | ||
) -> None: | ||
self.__namespace = namespace | ||
self.__name = name | ||
|
||
def perform( | ||
self, | ||
context: LaunchContext = None, | ||
) -> str: | ||
if isinstance(self.__namespace, Substitution): | ||
namespace = str(self.__namespace.perform(context)) | ||
else: | ||
namespace = str(self.__namespace) | ||
|
||
if isinstance(self.__name, Substitution): | ||
name = str(self.__name.perform(context)) | ||
else: | ||
name = str(self.__name) | ||
|
||
if namespace == '': | ||
namespaced_name = name | ||
else: | ||
namespaced_name = namespace + '/' + name | ||
return namespaced_name |
Oops, something went wrong.