Skip to content
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

collision_monitorを有効化する設定の変更 #15

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions raspimouse_navigation/params/raspimouse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,16 @@ behavior_server:
collision_monitor:
ros__parameters:
enable_stamped_cmd_vel: True
transform_tolerance: 0.1
source_timeout: 5.0
stop_pub_timeout: 2.0
base_shift_correction: False
polygons: ["DummyPolygon"]
DummyPolygon:
type: "circle"
radius: 0.0 # valid range of dummy
action_type: "none" # No action taken.
stop_pub_timeout: 1.0
polygons: ["SlowdownPolygon"]
SlowdownPolygon:
type: "polygon"
points: "[[0.1, 0.09], [0.1, -0.09], [-0.1, -0.09], [-0.1, 0.09]]"
action_type: "slowdown"
slowdown_ratio: 0.5 # 本来の速度の半分に制限
min_points: 10
visualize: True
polygon_pub_topic: "slowdown_polygon"
observation_sources: ["scan"]
scan:
type: "scan"
Expand Down
14 changes: 14 additions & 0 deletions raspimouse_navigation/rviz/nav2_view.rviz
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Panels:
- /Global Options1
- /TF1/Frames1
- /TF1/Tree1
- /Polygon1
Splitter Ratio: 0.5833333134651184
Tree Height: 658
- Class: rviz_common/Selection
Expand Down Expand Up @@ -413,6 +414,19 @@ Visualization Manager:
Reliability Policy: Reliable
Value: /waypoints
Value: true
- Alpha: 1
Class: rviz_default_plugins/Polygon
Color: 25; 255; 0
Enabled: true
Name: Polygon
Topic:
Depth: 5
Durability Policy: Volatile
Filter size: 10
History Policy: Keep Last
Reliability Policy: Reliable
Value: /slowdown_polygon
Value: true
Enabled: true
Global Options:
Background Color: 48; 48; 48
Expand Down