-
Notifications
You must be signed in to change notification settings - Fork 1
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
Teb tweaking #29
Merged
Merged
Teb tweaking #29
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
7d197a8
Remove things that needed to be delete in merge of PR #27 #28
PhileasL e7ff017
Global planner works now at 2Hz, drive's garbage log not showing anymore
PhileasL 5113322
Local_costmap contains obstacles for teb_local_planner
PhileasL 0d18afb
Tweak of the global_costmap for an acceptable global_planning
PhileasL 9d3cca7
Teb_local_planner tweak:
PhileasL 2fe9b94
Hello teb_obstacles node !
PhileasL 89b0def
teb_obstales node launching with nav
PhileasL 17db37a
Subscribing + callback to allies and ennemies topics
PhileasL 46a06cf
Initialisation of obstacles array
PhileasL 9bb597e
dictionnary_index_id:
PhileasL bfc2dbc
ennemies_subscription_callback function of teb_obstacles
PhileasL f0b4212
WIP on allies_subscription_callback for teb_obstacles
PhileasL 99d0577
Set_obstacles function for teb_obstacles
PhileasL 3551802
Publishing dynamic obstacles each .5s + including them in teb config
PhileasL a06bdc9
/robot/get_odom_map_tf service that returns the initial map->odom tf
PhileasL 991785b
Client of /robot/get_odom_map_tf for future pose transform
PhileasL dcca692
Different allie tracking strategy for dynamic obstacle
PhileasL fbd3215
removing useless remapping + commentaries on teb_obstacles functions
PhileasL 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,33 +56,40 @@ cetautomatix: | |
controller_server: | ||
ros__parameters: | ||
use_sim_time: !Var use_sim_time | ||
controller_frequency: 40.0 | ||
controller_frequency: 20.0 | ||
min_x_velocity_threshold: 0.001 | ||
min_y_velocity_threshold: 0.5 | ||
min_y_velocity_threshold: 0.001 | ||
min_theta_velocity_threshold: 0.001 | ||
progress_checker_plugin: "progress_checker" | ||
goal_checker_plugin: "goal_checker" | ||
controller_plugins: ["DynamicFollowPath"] | ||
progress_checker: | ||
plugin: "nav2_controller::SimpleProgressChecker" | ||
required_movement_radius: 0.5 | ||
required_movement_radius: 0.005 | ||
movement_time_allowance: 10.0 | ||
goal_checker: | ||
plugin: "nav2_controller::SimpleGoalChecker" | ||
xy_goal_tolerance: 0.02 | ||
yaw_goal_tolerance: 0.02 | ||
xy_goal_tolerance: 0.01 | ||
yaw_goal_tolerance: 0.01 | ||
stateful: True | ||
DynamicFollowPath: | ||
plugin: "teb_local_planner::TebLocalPlannerROS" | ||
# Robot footprint | ||
footprint_model.type: polygon | ||
|
||
# Goal tolerance | ||
xy_goal_tolerance: 0.01 | ||
yaw_goal_tolerance: 0.01 | ||
|
||
# Obstacles | ||
min_obstacle_dist: 0.01 | ||
inflation_dist: 0.1 | ||
min_obstacle_dist: 0.03 | ||
inflation_dist: 0.25 | ||
costmap_converter_plugin: costmap_converter::CostmapToPolygonsDBSMCCH | ||
costmap_converter_spin_thread: True | ||
costmap_converter_rate: 5 | ||
include_costmap_obstacles: true | ||
costmap_obstacles_behind_robot_dist: 3.0 | ||
include_dynamic_obstacles: true | ||
|
||
# Homotopy Class Planner | ||
enable_homotopy_class_planning: True | ||
|
@@ -103,6 +110,9 @@ controller_server: | |
global_plan_overwrite_orientation: true | ||
allow_init_with_backwards_motion: true | ||
|
||
# Miscellaneous | ||
map_frame: "map" | ||
|
||
|
||
controller_server_rclcpp_node: | ||
ros__parameters: | ||
|
@@ -112,12 +122,13 @@ controller_server_rclcpp_node: | |
global_costmap: | ||
global_costmap: | ||
ros__parameters: | ||
lethal_cost_threshold: 253 | ||
update_frequency: 5.0 | ||
publish_frequency: 5.0 | ||
global_frame: map | ||
robot_base_frame: base_link | ||
use_sim_time: !Var use_sim_time | ||
resolution: 0.02 | ||
resolution: 0.01 | ||
plugins: ["static_layer", "gradient_layer", "inflation_layer"] | ||
static_layer: #subscribe to map | ||
plugin: "nav2_costmap_2d::StaticLayer" | ||
|
@@ -131,24 +142,42 @@ global_costmap: | |
inflation_layer: | ||
plugin: "nav2_costmap_2d::InflationLayer" | ||
enabled: true | ||
inflation_radius: 0.2 | ||
cost_scaling_factor: 5.0 | ||
inflation_radius: 0.3 | ||
cost_scaling_factor: 10.0 | ||
inflate_unknown: false | ||
inflate_around_unknown: false | ||
always_send_full_costmap: true | ||
|
||
local_costmap: #just enough parameters to disable it | ||
local_costmap: | ||
local_costmap: | ||
ros__parameters: | ||
update_frequency: 0.1 | ||
publish_frequency: 0.1 | ||
lethal_cost_threshold: 253 | ||
trinary_costmap: false | ||
update_frequency: 5.0 | ||
publish_frequency: 5.0 | ||
global_frame: map | ||
robot_base_frame: base_link | ||
use_sim_time: false | ||
rolling_window: true | ||
width: 6 | ||
height: 6 | ||
rolling_window: false | ||
resolution: 1.0 | ||
static_map: true | ||
plugins: ["static_layer", "gradient_layer", "inflation_layer"] | ||
static_layer: | ||
plugin: nav2_costmap_2d::StaticLayer | ||
gradient_layer: #draw radians circle around ennemies | ||
plugin: "gradient_costmap_layer_plugin/GradientLayer" | ||
enabled: false | ||
gradient_size: 7 | ||
gradient_factor: 100 | ||
markers_topic: /ennemies_positions_markers | ||
inflation_layer: | ||
plugin: nav2_costmap_2d::InflationLayer | ||
enabled: false | ||
inflation_radius: 0.01 | ||
cost_scaling_factor: 5.0 | ||
inflate_unknown: false | ||
inflate_around_unknown: false | ||
Comment on lines
+167
to
+179
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Considering theses plugins disabled, it might be cleaner to remove them. |
||
always_send_full_costmap: true | ||
|
||
map_server: | ||
ros__parameters: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0"?> | ||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>teb_obstacles</name> | ||
<version>0.8.3</version> | ||
<description>teb_obstacles node compute and send dynamic teb_obstacles</description> | ||
<maintainer email="phileas.lambert@gmail.com">Philéas LAMBERT</maintainer> | ||
<license>ECAM Makers :: CDFR 2021</license> | ||
|
||
<exec_depend>rclpy</exec_depend> | ||
|
||
<export> | ||
<build_type>ament_python</build_type> | ||
</export> | ||
</package> |
Empty file.
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,4 @@ | ||
[develop] | ||
script-dir=$base/lib/teb_obstacles | ||
[install] | ||
install-scripts=$base/lib/teb_obstacles |
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 @@ | ||
#!/usr/bin/env python3 | ||
|
||
|
||
"""Teb_obstacles package.""" | ||
|
||
|
||
from os import path | ||
from setuptools import setup, find_packages | ||
|
||
package_name = 'teb_obstacles' | ||
|
||
setup( | ||
name=package_name, | ||
version='0.8.3', | ||
packages=find_packages(), | ||
data_files=[ | ||
(path.join("share", package_name), ["package.xml"]), | ||
('share/ament_index/resource_index/packages', ['resource/' + package_name]), | ||
], | ||
install_requires=['setuptools'], | ||
zip_safe=True, | ||
author="Philéas LAMBERT", | ||
maintainer='Phileas LAMBERT', | ||
maintainer_email='phileas.lambert@gmail.com', | ||
keywords=["ROS2", "teb_obstacles", "CDFR"], | ||
description='teb_obstacles node compute and send dynamic teb_obstacles', | ||
license="ECAM Makers :: CDFR 2021", | ||
entry_points={ | ||
'console_scripts': [ | ||
'teb_obstacles = teb_obstacles.teb_obstacles:main' | ||
], | ||
}, | ||
) |
Empty file.
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.
A little bit of oscillations left in some cases, majoritary xy oscillations. Maybe raise thoses numbers and finish the movement by a dedicated precision and very slow navigation custom plugin should be a good idea.