-
Notifications
You must be signed in to change notification settings - Fork 123
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
Add support for getting PID parameters from loaded parameters #374
Merged
ahcorde
merged 15 commits into
ros-controls:master
from
pal-robotics-forks:support/pid/parameters
Sep 16, 2024
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
e3a4acf
update extractPID to pass the PID struct as reference for configuring it
saikishor e901815
display properly the error on position and position_pid interface
saikishor bb34d21
Only if the PIDs are set, check for other entities
saikishor ca3ae4c
make joint_name const
saikishor 79ba7fc
print proper true or false regarding hold_joint
saikishor 5a4915d
Add support for extracting PID parameter from the loaded parameters
saikishor a8c3a2c
Merge branch 'ros-controls:master' into support/pid/parameters
saikishor cdcc6ca
add cmath header
saikishor fcfb077
add example on how to parse the PIDs via parameters file
saikishor be3761f
add precommit changes
saikishor 5a957d3
change the text inside the docs
saikishor 779f1b0
Add proper indentation to the parameters
saikishor 98e91d5
update the docs of the demos section
saikishor 08c2d0b
fix the formatting indent
saikishor 49cd425
Change to YAML
saikishor 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 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
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
20 changes: 20 additions & 0 deletions
20
gazebo_ros2_control_demos/config/cart_controller_position_with_pids.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
controller_manager: | ||
ros__parameters: | ||
update_rate: 100 # Hz | ||
|
||
position_controller: | ||
type: position_controllers/JointGroupPositionController | ||
|
||
joint_state_broadcaster: | ||
type: joint_state_broadcaster/JointStateBroadcaster | ||
|
||
position_controller: | ||
ros__parameters: | ||
joints: | ||
- slider_to_cart | ||
|
||
gazebo_ros2_control: | ||
ros__parameters: | ||
pid_gains: | ||
position: | ||
slider_to_cart: {kp: 100.0, kd: 10.0, ki: 1.0, max_integral_error: 10000.0} |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
include
<cmath>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. I will add it. I just wanted to leave it for initial review. Thank you for the review. I'll get it done soon