-
Notifications
You must be signed in to change notification settings - Fork 428
Add velocity_smoother support #115
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
sskorol
wants to merge
1
commit into
chvmp:ros2
Choose a base branch
from
sskorol:ros2
base: ros2
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.
+67
−16
Open
Changes from all commits
Commits
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
31 changes: 16 additions & 15 deletions
31
champ_base/config/velocity_smoother/velocity_smoother.yaml
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,22 +1,23 @@ | ||
| # Example configuration: | ||
| # - velocity limits are around a 10% above the physical limits | ||
| # - acceleration limits are just low enough to avoid jerking | ||
| velocity_smoother: | ||
| ros__parameters: | ||
| # Mandatory parameters | ||
| speed_lim_v_x: 0.5 | ||
| speed_lim_v_y: 0.35 | ||
|
|
||
| # Mandatory parameters | ||
| speed_lim_v_x: 0.5 | ||
| speed_lim_v_y: 0.35 | ||
| speed_lim_w: 0.4 | ||
|
|
||
| speed_lim_w: 0.4 | ||
| accel_lim_v: 1.0 | ||
| accel_lim_w: 2.0 | ||
|
|
||
| accel_lim_v: 1.0 | ||
| accel_lim_w: 2.0 | ||
| # Optional parameters | ||
| frequency: 10.0 | ||
| decel_factor: 1.0 | ||
|
|
||
| # Optional parameters | ||
| frequency: 10.0 | ||
| decel_factor: 1.0 | ||
|
|
||
| # Robot velocity feedback type: | ||
| # 0 - none | ||
| # 1 - odometry | ||
| # 2 - end robot commands | ||
| robot_feedback: 2 | ||
| # Robot velocity feedback type: | ||
| # 0 - none | ||
| # 1 - odometry | ||
| # 2 - end robot commands | ||
| robot_feedback: 2 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
|
|
||
| from os import path | ||
|
|
||
| from launch import LaunchDescription | ||
| from launch.substitutions import LaunchConfiguration | ||
| from ament_index_python.packages import get_package_share_directory | ||
| from launch.launch_description_sources import PythonLaunchDescriptionSource | ||
| from launch.actions import IncludeLaunchDescription | ||
|
|
||
|
|
||
| def generate_launch_description(): | ||
| config_path = path.join( | ||
| get_package_share_directory('champ_base'), | ||
| 'config', | ||
| 'velocity_smoother', | ||
| 'velocity_smoother.yaml' | ||
| ) | ||
|
|
||
| velocity_smoother_launch = IncludeLaunchDescription( | ||
| PythonLaunchDescriptionSource( | ||
| path.join( | ||
| get_package_share_directory("yocs_velocity_smoother"), | ||
| "launch", | ||
| "velocity_smoother.launch.py" | ||
| ) | ||
| ), | ||
| launch_arguments={ | ||
| "config_file": LaunchConfiguration("config_file", default=config_path), | ||
| "raw_cmd_vel_topic": LaunchConfiguration("raw_cmd_vel_topic", default="cmd_vel"), | ||
| "smooth_cmd_vel_topic": LaunchConfiguration("smooth_cmd_vel_topic", default="cmd_vel/smooth"), | ||
| "robot_cmd_vel_topic": LaunchConfiguration("robot_cmd_vel_topic", default="cmd_vel"), | ||
| "odom_topic": LaunchConfiguration("odom_topic", default="odom") | ||
| }.items() | ||
| ) | ||
|
|
||
| return LaunchDescription([velocity_smoother_launch]) |
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
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.