-
Notifications
You must be signed in to change notification settings - Fork 7
Refactor Drive Launch Files #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mdurrani808
wants to merge
22
commits into
umdloop:main
Choose a base branch
from
mdurrani808:refactor-drive-launch
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
5d72b20
refactor all drive launch files to better handle seperation of concer…
mdurrani808 ecd2d1a
remove old simulation files
mdurrani808 6e09093
almost working but it doesn't move
mdurrani808 9e95ba0
eugh
mdurrani808 6fd2f19
getting closer to working
mdurrani808 d17a843
its alive
mdurrani808 0a0a580
fixed mismatched tag
mdurrani808 7a4dd97
Merge branch 'main' into refactor-drive-launch
mdurrani808 3cc31f9
fix suspension naming
mdurrani808 1fb0a58
fixed merge conflcits
mdurrani808 059f9dc
fix bad merge
mdurrani808 de3dd06
make athena-drive less bad
mdurrani808 b3c8f60
update the launch files to be in a more standard style
mdurrani808 792b455
more cleanup
mdurrani808 d687a68
fix sim bringup
mdurrani808 e644fd1
handle review
mdurrani808 4ef3ada
Merge branch 'main' into refactor-drive-launch
mdurrani808 a8b3059
rename to rviz launch
mdurrani808 8826734
added odrive and rmd dependencies
mdurrani808 728d56f
maybe this works
mdurrani808 86eb244
maybe fix the remappings
mdurrani808 91dbc1d
Merge branch 'main' into refactor-drive-launch
mdurrani808 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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
243 changes: 107 additions & 136 deletions
243
src/description/urdf/athena_drive/athena_drive_macro.ros2_control.xacro
This file contains hidden or 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,141 +1,112 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <robot xmlns:xacro="http://wiki.ros.org/xacro"> | ||
|
|
||
| <xacro:macro name="athena_drive_ros2_control" params=" | ||
| <xacro:macro name="athena_drive_ros2_control" params=" | ||
| name | ||
| prefix | ||
| use_mock_hardware:=false | ||
| mock_sensor_commands:=false | ||
| sim_gazebo:=false | ||
| simulation_controllers" | ||
| > | ||
|
|
||
| <ros2_control name="${name}" type="system"> | ||
| <hardware> | ||
| <xacro:if value="${sim_gazebo}"> | ||
| <plugin>gz_ros2_control/GazeboSimSystem</plugin> | ||
| </xacro:if> | ||
|
|
||
| <xacro:if value="${use_mock_hardware and not sim_gazebo}"> | ||
| <plugin>mock_components/GenericSystem</plugin> | ||
| <param name="mock_sensor_commands">${mock_sensor_commands}</param> | ||
| </xacro:if> | ||
|
|
||
| <xacro:unless value="${use_mock_hardware or sim_gazebo}"> | ||
| <plugin>mock_components/GenericSystem</plugin> | ||
| </xacro:unless> | ||
| </hardware> | ||
|
|
||
| <joint name="${prefix}suspension_front_left_joint"> | ||
| <command_interface name="position"> | ||
| <param name="min">-1.0471975512</param> | ||
| <param name="max">1.0471975512</param> | ||
| </command_interface> | ||
| <state_interface name="position"> | ||
| <param name="initial_value">0.0</param> | ||
| </state_interface> | ||
| <state_interface name="velocity"/> | ||
| </joint> | ||
|
|
||
| <joint name="${prefix}suspension_front_right_joint"> | ||
| <command_interface name="position"> | ||
| <param name="min">-1.0471975512</param> | ||
| <param name="max">1.0471975512</param> | ||
| </command_interface> | ||
| <state_interface name="position"> | ||
| <param name="initial_value">0.0</param> | ||
| </state_interface> | ||
| <state_interface name="velocity"/> | ||
| </joint> | ||
|
|
||
| <joint name="${prefix}steer_fl_joint"> | ||
| <command_interface name="position"> | ||
| <param name="min">0</param> | ||
| <param name="max">6.2832</param> | ||
| </command_interface> | ||
| <state_interface name="position"> | ||
| <param name="initial_value">0.0</param> | ||
| </state_interface> | ||
| <state_interface name="velocity"/> | ||
| </joint> | ||
|
|
||
| <joint name="${prefix}steer_fr_joint"> | ||
| <command_interface name="position"> | ||
| <param name="min">0</param> | ||
| <param name="max">6.2832</param> | ||
| </command_interface> | ||
| <state_interface name="position"> | ||
| <param name="initial_value">0.0</param> | ||
| </state_interface> | ||
| <state_interface name="velocity"/> | ||
| </joint> | ||
|
|
||
| <joint name="${prefix}steer_br_joint"> | ||
| <command_interface name="position"> | ||
| <param name="min">0</param> | ||
| <param name="max">6.28318530718</param> | ||
| </command_interface> | ||
| <state_interface name="position"> | ||
| <param name="initial_value">0.0</param> | ||
| </state_interface> | ||
| <state_interface name="velocity"/> | ||
| </joint> | ||
|
|
||
| <joint name="${prefix}steer_bl_joint"> | ||
| <command_interface name="position"> | ||
| <param name="min">0</param> | ||
| <param name="max">6.2832</param> | ||
| </command_interface> | ||
| <state_interface name="position"> | ||
| <param name="initial_value">0.0</param> | ||
| </state_interface> | ||
| <state_interface name="velocity"/> | ||
| </joint> | ||
|
|
||
|
|
||
| <joint name="${prefix}propulsion_fl_joint"> | ||
| <command_interface name="velocity"/> | ||
| <state_interface name="position"> | ||
| <param name="initial_value">0.0</param> | ||
| </state_interface> | ||
| <state_interface name="velocity"/> | ||
| </joint> | ||
|
|
||
| <joint name="${prefix}propulsion_fr_joint"> | ||
| <command_interface name="velocity"/> | ||
| <state_interface name="position"> | ||
| <param name="initial_value">0.0</param> | ||
| </state_interface> | ||
| <state_interface name="velocity"/> | ||
| </joint> | ||
|
|
||
|
|
||
| <joint name="${prefix}propulsion_br_joint"> | ||
| <state_interface name="position"> | ||
| <param name="initial_value">0.0</param> | ||
| </state_interface> | ||
| <state_interface name="velocity"/> | ||
| </joint> | ||
|
|
||
|
|
||
| <joint name="${prefix}propulsion_bl_joint"> | ||
| <state_interface name="position"> | ||
| <param name="initial_value">0.0</param> | ||
| </state_interface> | ||
| <state_interface name="velocity"/> | ||
| </joint> | ||
| </ros2_control> | ||
|
|
||
| <xacro:if value="$(arg sim_gazebo)"> | ||
| <gazebo> | ||
| <plugin filename="gz_ros2_control-system" name="gz_ros2_control::GazeboSimROS2ControlPlugin"> | ||
| <xacro:if value="${simulation_controllers != ''}"> | ||
| <parameters>${simulation_controllers}</parameters> | ||
| </xacro:if> | ||
| <controller_manager_node_name>${prefix}controller_manager</controller_manager_node_name> | ||
| </plugin> | ||
| </gazebo> | ||
| </xacro:if> | ||
|
|
||
| </xacro:macro> | ||
| prefix use_sim:=false | ||
| simulation_controllers"> | ||
|
|
||
| <ros2_control name="${name}" type="system"> | ||
| <hardware> | ||
| <xacro:if value="$(arg use_sim)"> | ||
| <plugin>gz_ros2_control/GazeboSimSystem</plugin> | ||
| </xacro:if> | ||
|
|
||
| <xacro:unless value="$(arg use_sim)"> | ||
| <plugin>mock_components/GenericSystem</plugin> | ||
| </xacro:unless> | ||
| </hardware> | ||
|
|
||
| <joint name="${prefix}steer_fl_joint"> | ||
| <command_interface name="position"> | ||
| <param name="min">0</param> | ||
| <param name="max">6.2832</param> | ||
| </command_interface> | ||
| <state_interface name="position"> | ||
| <param name="initial_value">0.0</param> | ||
| </state_interface> | ||
| <state_interface name="velocity"/> | ||
| </joint> | ||
|
|
||
| <joint name="${prefix}steer_fr_joint"> | ||
| <command_interface name="position"> | ||
| <param name="min">0</param> | ||
| <param name="max">6.2832</param> | ||
| </command_interface> | ||
| <state_interface name="position"> | ||
| <param name="initial_value">0.0</param> | ||
| </state_interface> | ||
| <state_interface name="velocity"/> | ||
| </joint> | ||
|
|
||
| <joint name="${prefix}steer_br_joint"> | ||
| <command_interface name="position"> | ||
| <param name="min">0</param> | ||
| <param name="max">6.28318530718</param> | ||
| </command_interface> | ||
| <state_interface name="position"> | ||
| <param name="initial_value">0.0</param> | ||
| </state_interface> | ||
| <state_interface name="velocity"/> | ||
| </joint> | ||
|
|
||
| <joint name="${prefix}steer_bl_joint"> | ||
| <command_interface name="position"> | ||
| <param name="min">0</param> | ||
| <param name="max">6.2832</param> | ||
| </command_interface> | ||
| <state_interface name="position"> | ||
| <param name="initial_value">0.0</param> | ||
| </state_interface> | ||
| <state_interface name="velocity"/> | ||
| </joint> | ||
|
|
||
|
|
||
| <joint name="${prefix}propulsion_fl_joint"> | ||
| <command_interface name="velocity"/> | ||
| <state_interface name="position"> | ||
| <param name="initial_value">0.0</param> | ||
| </state_interface> | ||
| <state_interface name="velocity"/> | ||
| </joint> | ||
|
|
||
| <joint name="${prefix}propulsion_fr_joint"> | ||
| <command_interface name="velocity"/> | ||
| <state_interface name="position"> | ||
| <param name="initial_value">0.0</param> | ||
| </state_interface> | ||
| <state_interface name="velocity"/> | ||
| </joint> | ||
|
|
||
|
|
||
| <joint name="${prefix}propulsion_br_joint"> | ||
| <command_interface name="velocity"/> | ||
| <state_interface name="position"> | ||
| <param name="initial_value">0.0</param> | ||
| </state_interface> | ||
| <state_interface name="velocity"/> | ||
| </joint> | ||
|
|
||
|
|
||
| <joint name="${prefix}propulsion_bl_joint"> | ||
| <command_interface name="velocity"/> | ||
| <state_interface name="position"> | ||
| <param name="initial_value">0.0</param> | ||
| </state_interface> | ||
| <state_interface name="velocity"/> | ||
| </joint> | ||
| </ros2_control> | ||
|
|
||
| <xacro:if value="$(arg use_sim)"> | ||
| <gazebo> | ||
| <plugin filename="gz_ros2_control-system" name="gz_ros2_control::GazeboSimROS2ControlPlugin"> | ||
| <xacro:if value="${simulation_controllers != ''}"> | ||
| <parameters>${simulation_controllers}</parameters> | ||
| </xacro:if> | ||
| <controller_manager_node_name>${prefix}controller_manager</controller_manager_node_name> | ||
| </plugin> | ||
| </gazebo> | ||
| </xacro:if> | ||
|
|
||
| </xacro:macro> | ||
| </robot> |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.