From e74fcc2ec5d634e3709dd4033cd9e001a5c0fafc Mon Sep 17 00:00:00 2001 From: duongtd Date: Fri, 18 Sep 2026 14:37:42 +0700 Subject: [PATCH] config: don xac cu config/runtime/mprim, sua base_footprint, bo sung mprim moi + tai lieu recovery/costmap - Xoa toan bo config/runtime/mprim/*.yaml,*.py,*.m cu (mqtt_general.yaml, sbpl_global_params.yaml, ekf.yaml...) - xac chet khong package nao doc (da xac nhan qua grep + mqtt_connection_guide.md). - Them config/runtime/mprim/diff_r106_tip3_5cm.mprim, tro primitive_filename ve duong deploy /etc/pnkx_nav_core/config/runtime/mprim/diff_r106_tip3_5cm.mprim. - costmap_global_params.yaml: robot_base_frame base_link -> base_footprint; them cac layer obstacles/forbidden/preferred/unpreferred. - recovery_behaviors_params.yaml: viet lai tai lieu theo bon phep do cua PathMonitor/EnvMonitor (4/9, 6/9/2026). - Cac file con lai (action_handlers, costmap_common, costmap_local, dock_global, move_base_common, sbpl_global, stanley_local_planner_params): dieu chinh theo do dac robot that. --- config/runtime/action_handlers_params.yaml | 2 +- config/runtime/config/costmap_params.yaml | 2 +- config/runtime/costmap_common_params.yaml | 23 +- config/runtime/costmap_global_params.yaml | 30 +- ...lobal_params_plugins_no_virtual_walls.yaml | 7 +- config/runtime/costmap_local_params.yaml | 23 +- ...local_params_plugins_no_virtual_walls.yaml | 10 +- config/runtime/dock_global_params.yaml | 2 +- config/runtime/move_base_common_params.yaml | 4 +- .../mprim/base_local_planner_params.yaml | 48 - config/runtime/mprim/diff_r106_tip3_5cm.mprim | 1335 +++++++++++++++++ .../mprim/dwa_local_planner_params.yaml | 55 - config/runtime/mprim/ekf.yaml | 217 --- .../mprim/genmprim_unicycle_highcost_5cm.m | 280 ---- .../mprim/genmprim_unicycle_highcost_5cm.py | 416 ----- config/runtime/mprim/localization.yaml | 36 - config/runtime/mprim/mapping.yaml | 63 - .../mprim/mpc_local_planner_params.yaml | 106 -- config/runtime/mprim/mqtt_general.yaml | 8 - .../mprim/ros_diff_drive_controller.yaml | 71 - config/runtime/mprim/sbpl_global_params.yaml | 10 - .../runtime/mprim/sick_line_guidance_mls.yaml | 61 - config/runtime/recovery_behaviors_params.yaml | 368 +++-- config/runtime/sbpl_global_params.yaml | 2 +- .../runtime/stanley_local_planner_params.yaml | 2 +- 25 files changed, 1654 insertions(+), 1527 deletions(-) delete mode 100644 config/runtime/mprim/base_local_planner_params.yaml create mode 100644 config/runtime/mprim/diff_r106_tip3_5cm.mprim delete mode 100755 config/runtime/mprim/dwa_local_planner_params.yaml delete mode 100755 config/runtime/mprim/ekf.yaml delete mode 100755 config/runtime/mprim/genmprim_unicycle_highcost_5cm.m delete mode 100755 config/runtime/mprim/genmprim_unicycle_highcost_5cm.py delete mode 100644 config/runtime/mprim/localization.yaml delete mode 100644 config/runtime/mprim/mapping.yaml delete mode 100755 config/runtime/mprim/mpc_local_planner_params.yaml delete mode 100644 config/runtime/mprim/mqtt_general.yaml delete mode 100755 config/runtime/mprim/ros_diff_drive_controller.yaml delete mode 100755 config/runtime/mprim/sbpl_global_params.yaml delete mode 100644 config/runtime/mprim/sick_line_guidance_mls.yaml diff --git a/config/runtime/action_handlers_params.yaml b/config/runtime/action_handlers_params.yaml index 7750356..80b1d65 100644 --- a/config/runtime/action_handlers_params.yaml +++ b/config/runtime/action_handlers_params.yaml @@ -77,7 +77,7 @@ actions: # chặng docking bắt đầu. Bật lên thì TOÀN BỘ nhóm (3)(4) bên dưới bị bỏ qua. # ► Chỉnh: PHẢI đặt false trước khi chạy robot thật, để handler lấy frame do perception publish. # Để true trên robot thật = robot tiến vào một điểm bịa. - use_simulated_goal: true + use_simulated_goal: false # Ba offset dưới đây CHỈ có nghĩa khi use_simulated_goal: true — pose giả trong parent frame. simulated_parent_frame: base_link simulated_offset_x: 1.6 # [m] Đặt theo vị trí vật thể giả trong world Gazebo. diff --git a/config/runtime/config/costmap_params.yaml b/config/runtime/config/costmap_params.yaml index 35e2c17..1577e5e 100644 --- a/config/runtime/config/costmap_params.yaml +++ b/config/runtime/config/costmap_params.yaml @@ -1,6 +1,6 @@ robot_costmap_2d: global_frame: map - robot_base_frame: base_link + robot_base_frame: base_footprint rolling_window: false track_unknown_space: false diff --git a/config/runtime/costmap_common_params.yaml b/config/runtime/costmap_common_params.yaml index 7246602..f61bd54 100755 --- a/config/runtime/costmap_common_params.yaml +++ b/config/runtime/costmap_common_params.yaml @@ -1,4 +1,4 @@ -robot_base_frame: base_link +robot_base_frame: base_footprint transform_tolerance: 1.0 performance_metrics_enabled: true performance_metrics_period: 5.0 @@ -12,15 +12,27 @@ navigation_map: map_pkg: managerments map_file: maze -virtual_walls_map: - map_topic: /map - namespace: /virtual_walls +forbidden: + map_topic: forbidden map_pkg: managerments - map_file: maze use_maximum: true lethal_cost_threshold: 100 +preferred: + map_topic: preferred + use_maximum: true + lethal_cost_threshold: 100 + track_unknown_space: false + +unpreferred: + map_topic: unpreferred + use_maximum: true + lethal_cost_threshold: 100 + track_unknown_space: false + obstacles: + enabled: false + footprint_clearing_enabled: true observation_sources: f_scan b_scan # pc_marking pc_clearing pc_r_marking pc_r_clearing f_scan: topic: /f_scan @@ -41,7 +53,6 @@ obstacles: frustum_clearing_enabled: false min_obstacle_height: 0.0 max_obstacle_height: 0.25 - # pc_marking: # topic: /camera/depth/points_proc # data_type: PointCloud2 diff --git a/config/runtime/costmap_global_params.yaml b/config/runtime/costmap_global_params.yaml index 533a376..0338ef1 100755 --- a/config/runtime/costmap_global_params.yaml +++ b/config/runtime/costmap_global_params.yaml @@ -1,6 +1,6 @@ global_costmap: library_path: libplugins - robot_base_frame: base_link + robot_base_frame: base_footprint global_frame: map update_frequency: 1.0 publish_frequency: 1.0 @@ -26,6 +26,34 @@ global_costmap: z_resolution: 0.2 rolling_window: false z_voxels: 10 + + obstacles: + enabled: false + footprint_clearing_enabled: true + forbidden: + map_topic: forbidden + use_maximum: true + lethal_cost_threshold: 100 + track_unknown_space: false + unknown_cost_value: -1 + trinary_costmap: true + first_map_only: false + preferred: + map_topic: preferred + use_maximum: true + lethal_cost_threshold: 100 + track_unknown_space: false + unknown_cost_value: -1 + trinary_costmap: true + first_map_only: false + unpreferred: + map_topic: unpreferred + use_maximum: true + lethal_cost_threshold: 100 + track_unknown_space: false + unknown_cost_value: -1 + trinary_costmap: true + first_map_only: false inflation: cost_scaling_factor: 10.0 # Exponential rate at which the obstacle cost drops off (default: 10). Must be chosen so that the cost value is > 0 at robot's circumscribed radius. inflation_radius: 0.6 # Max. distance from an obstacle at which costs are incurred for planning paths. Must be > robot's circumscribed radius. diff --git a/config/runtime/costmap_global_params_plugins_no_virtual_walls.yaml b/config/runtime/costmap_global_params_plugins_no_virtual_walls.yaml index 30a3e96..a68a9c7 100755 --- a/config/runtime/costmap_global_params_plugins_no_virtual_walls.yaml +++ b/config/runtime/costmap_global_params_plugins_no_virtual_walls.yaml @@ -2,9 +2,8 @@ global_costmap: frame_id: map plugins: - {name: navigation_map, type: "StaticLayer" } - # - {name: virtual_walls_map, type: "StaticLayer" } + - {name: forbidden, type: "StaticLayer" } - {name: obstacles, type: "VoxelLayer" } - {name: inflation, type: "InflationLayer" } - obstacles: - enabled: false - footprint_clearing_enabled: true \ No newline at end of file + - {name: preferred, type: "PreferredLayer" } + - {name: unpreferred, type: "UnPreferredLayer" } diff --git a/config/runtime/costmap_local_params.yaml b/config/runtime/costmap_local_params.yaml index 71217e7..dc01661 100755 --- a/config/runtime/costmap_local_params.yaml +++ b/config/runtime/costmap_local_params.yaml @@ -1,7 +1,7 @@ local_costmap: library_path: libplugins global_frame: odom - robot_base_frame: base_link + robot_base_frame: base_footprint # [Hz] Tần số update local costmap. Nâng 6 -> 10 sau khi bật snapshot_for_readers (hết tranh chấp # mutex với planner): latency vật cản vào costmap 167 ms -> 100 ms. Trần hữu ích ~15 Hz (bằng tần số # sensor); nâng cao hơn nữa chỉ tốn CPU, không thêm thông tin. @@ -29,10 +29,23 @@ local_costmap: resolution: 0.05 z_resolution: 0.15 z_voxels: 8 - inflation: - cost_scaling_factor: 10.0 # Exponential rate at which the obstacle cost drops off (default: 10). Must be chosen so that the cost value is > 0 at robot's circumscribed radius. - inflation_radius: 0.3 # Max. distance from an obstacle at which costs are incurred for planning paths. Must be > robot's circumscribed radius. width: 8.0 height: 8.0 origin_x: 0.0 - origin_y: 0.0 \ No newline at end of file + origin_y: 0.0 + + forbidden: + map_topic: forbidden + use_maximum: true + lethal_cost_threshold: 100 + track_unknown_space: false + unknown_cost_value: -1 + trinary_costmap: true + first_map_only: false + obstacles: + enabled: true + footprint_clearing_enabled: true + inflation: + cost_scaling_factor: 10.0 # Exponential rate at which the obstacle cost drops off (default: 10). Must be chosen so that the cost value is > 0 at robot's circumscribed radius. + inflation_radius: 0.3 # Max. distance from an obstacle at which costs are incurred for planning paths. Must be > robot's circumscribed radius. + \ No newline at end of file diff --git a/config/runtime/costmap_local_params_plugins_no_virtual_walls.yaml b/config/runtime/costmap_local_params_plugins_no_virtual_walls.yaml index a9309cb..04abc44 100755 --- a/config/runtime/costmap_local_params_plugins_no_virtual_walls.yaml +++ b/config/runtime/costmap_local_params_plugins_no_virtual_walls.yaml @@ -1,9 +1,7 @@ local_costmap: frame_id: odom plugins: - # - {name: virtual_walls_map, type: "StaticLayer" } - - {name: obstacles, type: "VoxelLayer" } - - {name: inflation, type: "InflationLayer" } - obstacles: - enabled: true - footprint_clearing_enabled: true + - {name: forbidden, type: StaticLayer} + - {name: obstacles, type: VoxelLayer} + - {name: inflation_layer, type: InflationLayer} + diff --git a/config/runtime/dock_global_params.yaml b/config/runtime/dock_global_params.yaml index b63d588..1eb20e4 100644 --- a/config/runtime/dock_global_params.yaml +++ b/config/runtime/dock_global_params.yaml @@ -59,7 +59,7 @@ DockPlanner: # Hai frame trục bánh, dùng để ĐO wheel_base từ TF. Phải trùng cặp frame # StanleyControl đang dùng, lệch là bán kính cua tính ra sai. front_axle_frame: "steer_link" - rear_axle_frame: "base_link" + rear_axle_frame: "base_footprint" # [rad] Góc lái lớn nhất của mô hình xe đạp tương đương khi đang chạy. # PHẢI đo trên robot thật. KHÔNG phải tick servo, KHÔNG phải góc vô lăng, diff --git a/config/runtime/move_base_common_params.yaml b/config/runtime/move_base_common_params.yaml index 3a7c400..d0e60d4 100644 --- a/config/runtime/move_base_common_params.yaml +++ b/config/runtime/move_base_common_params.yaml @@ -130,7 +130,7 @@ planner_frequency: 0.0 # ► Chỉnh: đặt > thời gian lập plan xấu nhất của global planner. SBPL `allocated_time: 10.0` ở # sbpl_global_params.yaml ⇒ 2.0 s là NGẮN HƠN trần của chính planner: nếu thấy leo thang trong khi # planner vẫn đang chạy, tăng giá trị này lên trên trần đó. -planner_patience: 2.0 +planner_patience: 25.0 # Số lần lập plan HỎNG liên tiếp được phép trước khi leo thang. 0 = hỏng một lượt là leo thang ngay. # ► Chỉnh: TĂNG (1–3) nếu planner thỉnh thoảng fail do costmap chưa kịp cập nhật lúc vừa nhận goal. @@ -377,4 +377,4 @@ debug: # Một dòng tóm tắt feature của EnvMonitor mỗi giây khi đang giám sát (stall/unreachable/contact/ # ngân sách) — xem `env_monitor_params.yaml` cho tham số lõi của EnvMonitor. # ► Rẻ, một dòng mỗi giây. Tắt khi không cần theo dõi EnvMonitor. - env: true + env: false diff --git a/config/runtime/mprim/base_local_planner_params.yaml b/config/runtime/mprim/base_local_planner_params.yaml deleted file mode 100644 index 853cace..0000000 --- a/config/runtime/mprim/base_local_planner_params.yaml +++ /dev/null @@ -1,48 +0,0 @@ -#For full documentation of the parameters in this file, and a list of all the -#parameters available for TrajectoryPlannerROS, please see -#http://www.ros.org/wiki/base_local_planner -TrajectoryPlannerROS: - #Set the acceleration limits of the robot - acc_lim_th: 3.2 - acc_lim_x: 0.5 - acc_lim_y: 0.5 - - #Set the velocity limits of the robot - max_vel_x: 0.4 - min_vel_x: 0.1 - max_rotational_vel: 1.0 - min_in_place_rotational_vel: 0.4 - - #The velocity the robot will command when trying to escape from a stuck situation - escape_vel: -0.2 - - #For this example, we'll use a holonomic robot - holonomic_robot: false - - #Since we're using a holonomic robot, we'll set the set of y velocities it will sample - y_vels: [-0.3, -0.1, 0.1, 0.3] - - #Set the tolerance on achieving a goal - xy_goal_tolerance: 0.1 - yaw_goal_tolerance: 0.05 - - #We'll configure how long and with what granularity we'll forward simulate trajectories - sim_time: 3.0 - sim_granularity: 0.025 - vx_samples: 5 - vtheta_samples: 20 - - #Parameters for scoring trajectories - goal_distance_bias: 0.4 - path_distance_bias: 0.7 - occdist_scale: 0.3 - heading_lookahead: 0.325 - - #We'll use the Dynamic Window Approach to control instead of Trajectory Rollout for this example - dwa: false - - #How far the robot must travel before oscillation flags are reset - oscillation_reset_dist: 0.01 - - #Eat up the plan as the robot moves along it - prune_plan: false \ No newline at end of file diff --git a/config/runtime/mprim/diff_r106_tip3_5cm.mprim b/config/runtime/mprim/diff_r106_tip3_5cm.mprim new file mode 100644 index 0000000..6405d37 --- /dev/null +++ b/config/runtime/mprim/diff_r106_tip3_5cm.mprim @@ -0,0 +1,1335 @@ +resolution_m: 0.050000 +numberofangles: 16 +totalnumberofprimitives: 112 +primID: 0 +startangle_c: 0 +endpose_c: 2 0 0 +additionalactioncostmult: 1 +intermediateposes: 3 +0.0000 0.0000 0.0000 +0.0500 0.0000 0.0000 +0.1000 0.0000 0.0000 +primID: 1 +startangle_c: 0 +endpose_c: 8 0 0 +additionalactioncostmult: 1 +intermediateposes: 9 +0.0000 0.0000 0.0000 +0.0500 0.0000 0.0000 +0.1000 0.0000 0.0000 +0.1500 0.0000 0.0000 +0.2000 0.0000 0.0000 +0.2500 0.0000 0.0000 +0.3000 0.0000 0.0000 +0.3500 0.0000 0.0000 +0.4000 0.0000 0.0000 +primID: 2 +startangle_c: 0 +endpose_c: -2 0 0 +additionalactioncostmult: 40 +intermediateposes: 3 +0.0000 0.0000 0.0000 +-0.0500 0.0000 0.0000 +-0.1000 0.0000 0.0000 +primID: 3 +startangle_c: 0 +endpose_c: 8 2 1 +additionalactioncostmult: 2 +intermediateposes: 12 +0.0000 0.0000 0.0000 +0.0375 0.0008 0.0357 +0.0750 0.0033 0.0714 +0.1124 0.0075 0.1071 +0.1496 0.0134 0.1428 +0.1866 0.0209 0.1785 +0.2232 0.0300 0.2142 +0.2595 0.0408 0.2499 +0.2954 0.0532 0.2856 +0.3308 0.0672 0.3213 +0.3657 0.0828 0.3570 +0.4000 0.1000 0.3927 +primID: 4 +startangle_c: 0 +endpose_c: 8 -2 15 +additionalactioncostmult: 2 +intermediateposes: 12 +0.0000 0.0000 0.0000 +0.0375 -0.0008 -0.0357 +0.0750 -0.0033 -0.0714 +0.1124 -0.0075 -0.1071 +0.1496 -0.0134 -0.1428 +0.1866 -0.0209 -0.1785 +0.2232 -0.0300 -0.2142 +0.2595 -0.0408 -0.2499 +0.2954 -0.0532 -0.2856 +0.3308 -0.0672 -0.3213 +0.3657 -0.0828 -0.3570 +0.4000 -0.1000 -0.3927 +primID: 5 +startangle_c: 0 +endpose_c: 0 0 1 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 0.0000 +0.0000 0.0000 0.0982 +0.0000 0.0000 0.1963 +0.0000 0.0000 0.2945 +0.0000 0.0000 0.3927 +primID: 6 +startangle_c: 0 +endpose_c: 0 0 15 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 0.0000 +0.0000 0.0000 -0.0982 +0.0000 0.0000 -0.1963 +0.0000 0.0000 -0.2945 +0.0000 0.0000 -0.3927 +primID: 0 +startangle_c: 1 +endpose_c: 2 1 1 +additionalactioncostmult: 1 +intermediateposes: 4 +0.0000 0.0000 0.3927 +0.0333 0.0167 0.3927 +0.0667 0.0333 0.3927 +0.1000 0.0500 0.3927 +primID: 1 +startangle_c: 1 +endpose_c: 7 3 1 +additionalactioncostmult: 1 +intermediateposes: 9 +0.0000 0.0000 0.3927 +0.0438 0.0188 0.3927 +0.0875 0.0375 0.3927 +0.1313 0.0563 0.3927 +0.1750 0.0750 0.3927 +0.2188 0.0938 0.3927 +0.2625 0.1125 0.3927 +0.3063 0.1313 0.3927 +0.3500 0.1500 0.3927 +primID: 2 +startangle_c: 1 +endpose_c: -2 -1 1 +additionalactioncostmult: 40 +intermediateposes: 4 +0.0000 0.0000 0.3927 +-0.0333 -0.0167 0.3927 +-0.0667 -0.0333 0.3927 +-0.1000 -0.0500 0.3927 +primID: 3 +startangle_c: 1 +endpose_c: 7 5 2 +additionalactioncostmult: 2 +intermediateposes: 12 +0.0000 0.0000 0.3927 +0.0359 0.0158 0.4284 +0.0712 0.0330 0.4641 +0.1058 0.0517 0.4998 +0.1395 0.0718 0.5355 +0.1725 0.0934 0.5712 +0.2045 0.1162 0.6069 +0.2357 0.1405 0.6426 +0.2658 0.1660 0.6783 +0.2950 0.1928 0.7140 +0.3230 0.2208 0.7497 +0.3500 0.2500 0.7854 +primID: 4 +startangle_c: 1 +endpose_c: 8 2 0 +additionalactioncostmult: 2 +intermediateposes: 10 +0.0000 0.0000 0.3927 +0.0427 0.0177 0.3927 +0.0854 0.0354 0.3927 +0.1283 0.0523 0.3477 +0.1722 0.0668 0.2898 +0.2168 0.0787 0.2318 +0.2621 0.0880 0.1739 +0.3078 0.0947 0.1159 +0.3538 0.0987 0.0580 +0.4000 0.1000 0.0000 +primID: 5 +startangle_c: 1 +endpose_c: 0 0 2 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 0.3927 +0.0000 0.0000 0.4909 +0.0000 0.0000 0.5890 +0.0000 0.0000 0.6872 +0.0000 0.0000 0.7854 +primID: 6 +startangle_c: 1 +endpose_c: 0 0 0 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 0.3927 +0.0000 0.0000 0.2945 +0.0000 0.0000 0.1963 +0.0000 0.0000 0.0982 +0.0000 0.0000 0.0000 +primID: 0 +startangle_c: 2 +endpose_c: 1 1 2 +additionalactioncostmult: 1 +intermediateposes: 3 +0.0000 0.0000 0.7854 +0.0250 0.0250 0.7854 +0.0500 0.0500 0.7854 +primID: 1 +startangle_c: 2 +endpose_c: 6 6 2 +additionalactioncostmult: 1 +intermediateposes: 10 +0.0000 0.0000 0.7854 +0.0333 0.0333 0.7854 +0.0667 0.0667 0.7854 +0.1000 0.1000 0.7854 +0.1333 0.1333 0.7854 +0.1667 0.1667 0.7854 +0.2000 0.2000 0.7854 +0.2333 0.2333 0.7854 +0.2667 0.2667 0.7854 +0.3000 0.3000 0.7854 +primID: 2 +startangle_c: 2 +endpose_c: -1 -1 2 +additionalactioncostmult: 40 +intermediateposes: 3 +0.0000 0.0000 0.7854 +-0.0250 -0.0250 0.7854 +-0.0500 -0.0500 0.7854 +primID: 3 +startangle_c: 2 +endpose_c: 5 7 3 +additionalactioncostmult: 2 +intermediateposes: 10 +0.0000 0.0000 0.7854 +0.0341 0.0341 0.7854 +0.0678 0.0684 0.8151 +0.1000 0.1043 0.8669 +0.1302 0.1418 0.9188 +0.1584 0.1809 0.9707 +0.1846 0.2213 1.0225 +0.2086 0.2631 1.0744 +0.2304 0.3060 1.1262 +0.2500 0.3500 1.1781 +primID: 4 +startangle_c: 2 +endpose_c: 7 5 1 +additionalactioncostmult: 2 +intermediateposes: 10 +0.0000 0.0000 0.7854 +0.0341 0.0341 0.7854 +0.0684 0.0678 0.7557 +0.1043 0.1000 0.7039 +0.1418 0.1302 0.6520 +0.1809 0.1584 0.6001 +0.2213 0.1846 0.5483 +0.2631 0.2086 0.4964 +0.3060 0.2304 0.4446 +0.3500 0.2500 0.3927 +primID: 5 +startangle_c: 2 +endpose_c: 0 0 3 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 0.7854 +0.0000 0.0000 0.8836 +0.0000 0.0000 0.9817 +0.0000 0.0000 1.0799 +0.0000 0.0000 1.1781 +primID: 6 +startangle_c: 2 +endpose_c: 0 0 1 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 0.7854 +0.0000 0.0000 0.6872 +0.0000 0.0000 0.5890 +0.0000 0.0000 0.4909 +0.0000 0.0000 0.3927 +primID: 0 +startangle_c: 3 +endpose_c: 1 2 3 +additionalactioncostmult: 1 +intermediateposes: 4 +0.0000 0.0000 1.1781 +0.0167 0.0333 1.1781 +0.0333 0.0667 1.1781 +0.0500 0.1000 1.1781 +primID: 1 +startangle_c: 3 +endpose_c: 3 7 3 +additionalactioncostmult: 1 +intermediateposes: 9 +0.0000 0.0000 1.1781 +0.0188 0.0438 1.1781 +0.0375 0.0875 1.1781 +0.0563 0.1313 1.1781 +0.0750 0.1750 1.1781 +0.0938 0.2188 1.1781 +0.1125 0.2625 1.1781 +0.1313 0.3063 1.1781 +0.1500 0.3500 1.1781 +primID: 2 +startangle_c: 3 +endpose_c: -1 -2 3 +additionalactioncostmult: 40 +intermediateposes: 4 +0.0000 0.0000 1.1781 +-0.0167 -0.0333 1.1781 +-0.0333 -0.0667 1.1781 +-0.0500 -0.1000 1.1781 +primID: 3 +startangle_c: 3 +endpose_c: 2 8 4 +additionalactioncostmult: 2 +intermediateposes: 10 +0.0000 0.0000 1.1781 +0.0177 0.0427 1.1781 +0.0354 0.0854 1.1781 +0.0523 0.1283 1.2231 +0.0668 0.1722 1.2810 +0.0787 0.2168 1.3390 +0.0880 0.2621 1.3969 +0.0947 0.3078 1.4549 +0.0987 0.3538 1.5128 +0.1000 0.4000 1.5708 +primID: 4 +startangle_c: 3 +endpose_c: 5 7 2 +additionalactioncostmult: 2 +intermediateposes: 12 +0.0000 0.0000 1.1781 +0.0158 0.0359 1.1424 +0.0330 0.0712 1.1067 +0.0517 0.1058 1.0710 +0.0718 0.1395 1.0353 +0.0934 0.1725 0.9996 +0.1162 0.2045 0.9639 +0.1405 0.2357 0.9282 +0.1660 0.2658 0.8925 +0.1928 0.2950 0.8568 +0.2208 0.3230 0.8211 +0.2500 0.3500 0.7854 +primID: 5 +startangle_c: 3 +endpose_c: 0 0 4 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 1.1781 +0.0000 0.0000 1.2763 +0.0000 0.0000 1.3744 +0.0000 0.0000 1.4726 +0.0000 0.0000 1.5708 +primID: 6 +startangle_c: 3 +endpose_c: 0 0 2 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 1.1781 +0.0000 0.0000 1.0799 +0.0000 0.0000 0.9817 +0.0000 0.0000 0.8836 +0.0000 0.0000 0.7854 +primID: 0 +startangle_c: 4 +endpose_c: 0 2 4 +additionalactioncostmult: 1 +intermediateposes: 3 +0.0000 0.0000 1.5708 +0.0000 0.0500 1.5708 +0.0000 0.1000 1.5708 +primID: 1 +startangle_c: 4 +endpose_c: 0 8 4 +additionalactioncostmult: 1 +intermediateposes: 9 +0.0000 0.0000 1.5708 +0.0000 0.0500 1.5708 +0.0000 0.1000 1.5708 +0.0000 0.1500 1.5708 +0.0000 0.2000 1.5708 +0.0000 0.2500 1.5708 +0.0000 0.3000 1.5708 +0.0000 0.3500 1.5708 +0.0000 0.4000 1.5708 +primID: 2 +startangle_c: 4 +endpose_c: 0 -2 4 +additionalactioncostmult: 40 +intermediateposes: 3 +0.0000 0.0000 1.5708 +0.0000 -0.0500 1.5708 +0.0000 -0.1000 1.5708 +primID: 3 +startangle_c: 4 +endpose_c: -2 8 5 +additionalactioncostmult: 2 +intermediateposes: 12 +0.0000 0.0000 1.5708 +-0.0008 0.0375 1.6065 +-0.0033 0.0750 1.6422 +-0.0075 0.1124 1.6779 +-0.0134 0.1496 1.7136 +-0.0209 0.1866 1.7493 +-0.0300 0.2232 1.7850 +-0.0408 0.2595 1.8207 +-0.0532 0.2954 1.8564 +-0.0672 0.3308 1.8921 +-0.0828 0.3657 1.9278 +-0.1000 0.4000 1.9635 +primID: 4 +startangle_c: 4 +endpose_c: 2 8 3 +additionalactioncostmult: 2 +intermediateposes: 12 +0.0000 0.0000 1.5708 +0.0008 0.0375 1.5351 +0.0033 0.0750 1.4994 +0.0075 0.1124 1.4637 +0.0134 0.1496 1.4280 +0.0209 0.1866 1.3923 +0.0300 0.2232 1.3566 +0.0408 0.2595 1.3209 +0.0532 0.2954 1.2852 +0.0672 0.3308 1.2495 +0.0828 0.3657 1.2138 +0.1000 0.4000 1.1781 +primID: 5 +startangle_c: 4 +endpose_c: 0 0 5 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 1.5708 +0.0000 0.0000 1.6690 +0.0000 0.0000 1.7671 +0.0000 0.0000 1.8653 +0.0000 0.0000 1.9635 +primID: 6 +startangle_c: 4 +endpose_c: 0 0 3 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 1.5708 +0.0000 0.0000 1.4726 +0.0000 0.0000 1.3744 +0.0000 0.0000 1.2763 +0.0000 0.0000 1.1781 +primID: 0 +startangle_c: 5 +endpose_c: -1 2 5 +additionalactioncostmult: 1 +intermediateposes: 4 +0.0000 0.0000 1.9635 +-0.0167 0.0333 1.9635 +-0.0333 0.0667 1.9635 +-0.0500 0.1000 1.9635 +primID: 1 +startangle_c: 5 +endpose_c: -3 7 5 +additionalactioncostmult: 1 +intermediateposes: 9 +0.0000 0.0000 1.9635 +-0.0188 0.0438 1.9635 +-0.0375 0.0875 1.9635 +-0.0563 0.1313 1.9635 +-0.0750 0.1750 1.9635 +-0.0938 0.2188 1.9635 +-0.1125 0.2625 1.9635 +-0.1313 0.3063 1.9635 +-0.1500 0.3500 1.9635 +primID: 2 +startangle_c: 5 +endpose_c: 1 -2 5 +additionalactioncostmult: 40 +intermediateposes: 4 +0.0000 0.0000 1.9635 +0.0167 -0.0333 1.9635 +0.0333 -0.0667 1.9635 +0.0500 -0.1000 1.9635 +primID: 3 +startangle_c: 5 +endpose_c: -5 7 6 +additionalactioncostmult: 2 +intermediateposes: 12 +0.0000 0.0000 1.9635 +-0.0158 0.0359 1.9992 +-0.0330 0.0712 2.0349 +-0.0517 0.1058 2.0706 +-0.0718 0.1395 2.1063 +-0.0934 0.1725 2.1420 +-0.1162 0.2045 2.1777 +-0.1405 0.2357 2.2134 +-0.1660 0.2658 2.2491 +-0.1928 0.2950 2.2848 +-0.2208 0.3230 2.3205 +-0.2500 0.3500 2.3562 +primID: 4 +startangle_c: 5 +endpose_c: -2 8 4 +additionalactioncostmult: 2 +intermediateposes: 10 +0.0000 0.0000 1.9635 +-0.0177 0.0427 1.9635 +-0.0354 0.0854 1.9635 +-0.0523 0.1283 1.9185 +-0.0668 0.1722 1.8606 +-0.0787 0.2168 1.8026 +-0.0880 0.2621 1.7447 +-0.0947 0.3078 1.6867 +-0.0987 0.3538 1.6287 +-0.1000 0.4000 1.5708 +primID: 5 +startangle_c: 5 +endpose_c: 0 0 6 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 1.9635 +0.0000 0.0000 2.0617 +0.0000 0.0000 2.1598 +0.0000 0.0000 2.2580 +0.0000 0.0000 2.3562 +primID: 6 +startangle_c: 5 +endpose_c: 0 0 4 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 1.9635 +0.0000 0.0000 1.8653 +0.0000 0.0000 1.7671 +0.0000 0.0000 1.6690 +0.0000 0.0000 1.5708 +primID: 0 +startangle_c: 6 +endpose_c: -1 1 6 +additionalactioncostmult: 1 +intermediateposes: 3 +0.0000 0.0000 2.3562 +-0.0250 0.0250 2.3562 +-0.0500 0.0500 2.3562 +primID: 1 +startangle_c: 6 +endpose_c: -6 6 6 +additionalactioncostmult: 1 +intermediateposes: 10 +0.0000 0.0000 2.3562 +-0.0333 0.0333 2.3562 +-0.0667 0.0667 2.3562 +-0.1000 0.1000 2.3562 +-0.1333 0.1333 2.3562 +-0.1667 0.1667 2.3562 +-0.2000 0.2000 2.3562 +-0.2333 0.2333 2.3562 +-0.2667 0.2667 2.3562 +-0.3000 0.3000 2.3562 +primID: 2 +startangle_c: 6 +endpose_c: 1 -1 6 +additionalactioncostmult: 40 +intermediateposes: 3 +0.0000 0.0000 2.3562 +0.0250 -0.0250 2.3562 +0.0500 -0.0500 2.3562 +primID: 3 +startangle_c: 6 +endpose_c: -7 5 7 +additionalactioncostmult: 2 +intermediateposes: 10 +0.0000 0.0000 2.3562 +-0.0341 0.0341 2.3562 +-0.0684 0.0678 2.3859 +-0.1043 0.1000 2.4377 +-0.1418 0.1302 2.4896 +-0.1809 0.1584 2.5415 +-0.2213 0.1846 2.5933 +-0.2631 0.2086 2.6452 +-0.3060 0.2304 2.6970 +-0.3500 0.2500 2.7489 +primID: 4 +startangle_c: 6 +endpose_c: -5 7 5 +additionalactioncostmult: 2 +intermediateposes: 10 +0.0000 0.0000 2.3562 +-0.0341 0.0341 2.3562 +-0.0678 0.0684 2.3265 +-0.1000 0.1043 2.2747 +-0.1302 0.1418 2.2228 +-0.1584 0.1809 2.1709 +-0.1846 0.2213 2.1191 +-0.2086 0.2631 2.0672 +-0.2304 0.3060 2.0154 +-0.2500 0.3500 1.9635 +primID: 5 +startangle_c: 6 +endpose_c: 0 0 7 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 2.3562 +0.0000 0.0000 2.4544 +0.0000 0.0000 2.5525 +0.0000 0.0000 2.6507 +0.0000 0.0000 2.7489 +primID: 6 +startangle_c: 6 +endpose_c: 0 0 5 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 2.3562 +0.0000 0.0000 2.2580 +0.0000 0.0000 2.1598 +0.0000 0.0000 2.0617 +0.0000 0.0000 1.9635 +primID: 0 +startangle_c: 7 +endpose_c: -2 1 7 +additionalactioncostmult: 1 +intermediateposes: 4 +0.0000 0.0000 2.7489 +-0.0333 0.0167 2.7489 +-0.0667 0.0333 2.7489 +-0.1000 0.0500 2.7489 +primID: 1 +startangle_c: 7 +endpose_c: -7 3 7 +additionalactioncostmult: 1 +intermediateposes: 9 +0.0000 0.0000 2.7489 +-0.0438 0.0188 2.7489 +-0.0875 0.0375 2.7489 +-0.1313 0.0563 2.7489 +-0.1750 0.0750 2.7489 +-0.2188 0.0938 2.7489 +-0.2625 0.1125 2.7489 +-0.3063 0.1313 2.7489 +-0.3500 0.1500 2.7489 +primID: 2 +startangle_c: 7 +endpose_c: 2 -1 7 +additionalactioncostmult: 40 +intermediateposes: 4 +0.0000 0.0000 2.7489 +0.0333 -0.0167 2.7489 +0.0667 -0.0333 2.7489 +0.1000 -0.0500 2.7489 +primID: 3 +startangle_c: 7 +endpose_c: -8 2 8 +additionalactioncostmult: 2 +intermediateposes: 10 +0.0000 0.0000 2.7489 +-0.0427 0.0177 2.7489 +-0.0854 0.0354 2.7489 +-0.1283 0.0523 2.7939 +-0.1722 0.0668 2.8518 +-0.2168 0.0787 2.9098 +-0.2621 0.0880 2.9677 +-0.3078 0.0947 3.0257 +-0.3538 0.0987 3.0836 +-0.4000 0.1000 3.1416 +primID: 4 +startangle_c: 7 +endpose_c: -7 5 6 +additionalactioncostmult: 2 +intermediateposes: 12 +0.0000 0.0000 2.7489 +-0.0359 0.0158 2.7132 +-0.0712 0.0330 2.6775 +-0.1058 0.0517 2.6418 +-0.1395 0.0718 2.6061 +-0.1725 0.0934 2.5704 +-0.2045 0.1162 2.5347 +-0.2357 0.1405 2.4990 +-0.2658 0.1660 2.4633 +-0.2950 0.1928 2.4276 +-0.3230 0.2208 2.3919 +-0.3500 0.2500 2.3562 +primID: 5 +startangle_c: 7 +endpose_c: 0 0 8 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 2.7489 +0.0000 0.0000 2.8471 +0.0000 0.0000 2.9452 +0.0000 0.0000 3.0434 +0.0000 0.0000 3.1416 +primID: 6 +startangle_c: 7 +endpose_c: 0 0 6 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 2.7489 +0.0000 0.0000 2.6507 +0.0000 0.0000 2.5525 +0.0000 0.0000 2.4544 +0.0000 0.0000 2.3562 +primID: 0 +startangle_c: 8 +endpose_c: -2 0 8 +additionalactioncostmult: 1 +intermediateposes: 3 +0.0000 0.0000 3.1416 +-0.0500 0.0000 3.1416 +-0.1000 0.0000 3.1416 +primID: 1 +startangle_c: 8 +endpose_c: -8 0 8 +additionalactioncostmult: 1 +intermediateposes: 9 +0.0000 0.0000 3.1416 +-0.0500 0.0000 3.1416 +-0.1000 0.0000 3.1416 +-0.1500 0.0000 3.1416 +-0.2000 0.0000 3.1416 +-0.2500 0.0000 3.1416 +-0.3000 0.0000 3.1416 +-0.3500 0.0000 3.1416 +-0.4000 0.0000 3.1416 +primID: 2 +startangle_c: 8 +endpose_c: 2 0 8 +additionalactioncostmult: 40 +intermediateposes: 3 +0.0000 0.0000 3.1416 +0.0500 0.0000 3.1416 +0.1000 0.0000 3.1416 +primID: 3 +startangle_c: 8 +endpose_c: -8 -2 9 +additionalactioncostmult: 2 +intermediateposes: 12 +0.0000 0.0000 3.1416 +-0.0375 -0.0008 3.1773 +-0.0750 -0.0033 3.2130 +-0.1124 -0.0075 3.2487 +-0.1496 -0.0134 3.2844 +-0.1866 -0.0209 3.3201 +-0.2232 -0.0300 3.3558 +-0.2595 -0.0408 3.3915 +-0.2954 -0.0532 3.4272 +-0.3308 -0.0672 3.4629 +-0.3657 -0.0828 3.4986 +-0.4000 -0.1000 3.5343 +primID: 4 +startangle_c: 8 +endpose_c: -8 2 7 +additionalactioncostmult: 2 +intermediateposes: 12 +0.0000 0.0000 3.1416 +-0.0375 0.0008 3.1059 +-0.0750 0.0033 3.0702 +-0.1124 0.0075 3.0345 +-0.1496 0.0134 2.9988 +-0.1866 0.0209 2.9631 +-0.2232 0.0300 2.9274 +-0.2595 0.0408 2.8917 +-0.2954 0.0532 2.8560 +-0.3308 0.0672 2.8203 +-0.3657 0.0828 2.7846 +-0.4000 0.1000 2.7489 +primID: 5 +startangle_c: 8 +endpose_c: 0 0 9 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 3.1416 +0.0000 0.0000 3.2398 +0.0000 0.0000 3.3379 +0.0000 0.0000 3.4361 +0.0000 0.0000 3.5343 +primID: 6 +startangle_c: 8 +endpose_c: 0 0 7 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 3.1416 +0.0000 0.0000 3.0434 +0.0000 0.0000 2.9452 +0.0000 0.0000 2.8471 +0.0000 0.0000 2.7489 +primID: 0 +startangle_c: 9 +endpose_c: -2 -1 9 +additionalactioncostmult: 1 +intermediateposes: 4 +0.0000 0.0000 3.5343 +-0.0333 -0.0167 3.5343 +-0.0667 -0.0333 3.5343 +-0.1000 -0.0500 3.5343 +primID: 1 +startangle_c: 9 +endpose_c: -7 -3 9 +additionalactioncostmult: 1 +intermediateposes: 9 +0.0000 0.0000 3.5343 +-0.0438 -0.0188 3.5343 +-0.0875 -0.0375 3.5343 +-0.1313 -0.0563 3.5343 +-0.1750 -0.0750 3.5343 +-0.2188 -0.0938 3.5343 +-0.2625 -0.1125 3.5343 +-0.3063 -0.1313 3.5343 +-0.3500 -0.1500 3.5343 +primID: 2 +startangle_c: 9 +endpose_c: 2 1 9 +additionalactioncostmult: 40 +intermediateposes: 4 +0.0000 0.0000 3.5343 +0.0333 0.0167 3.5343 +0.0667 0.0333 3.5343 +0.1000 0.0500 3.5343 +primID: 3 +startangle_c: 9 +endpose_c: -7 -5 10 +additionalactioncostmult: 2 +intermediateposes: 12 +0.0000 0.0000 3.5343 +-0.0359 -0.0158 3.5700 +-0.0712 -0.0330 3.6057 +-0.1058 -0.0517 3.6414 +-0.1395 -0.0718 3.6771 +-0.1725 -0.0934 3.7128 +-0.2045 -0.1162 3.7485 +-0.2357 -0.1405 3.7842 +-0.2658 -0.1660 3.8199 +-0.2950 -0.1928 3.8556 +-0.3230 -0.2208 3.8913 +-0.3500 -0.2500 3.9270 +primID: 4 +startangle_c: 9 +endpose_c: -8 -2 8 +additionalactioncostmult: 2 +intermediateposes: 10 +0.0000 0.0000 3.5343 +-0.0427 -0.0177 3.5343 +-0.0854 -0.0354 3.5343 +-0.1283 -0.0523 3.4893 +-0.1722 -0.0668 3.4313 +-0.2168 -0.0787 3.3734 +-0.2621 -0.0880 3.3154 +-0.3078 -0.0947 3.2575 +-0.3538 -0.0987 3.1995 +-0.4000 -0.1000 3.1416 +primID: 5 +startangle_c: 9 +endpose_c: 0 0 10 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 3.5343 +0.0000 0.0000 3.6325 +0.0000 0.0000 3.7306 +0.0000 0.0000 3.8288 +0.0000 0.0000 3.9270 +primID: 6 +startangle_c: 9 +endpose_c: 0 0 8 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 3.5343 +0.0000 0.0000 3.4361 +0.0000 0.0000 3.3379 +0.0000 0.0000 3.2398 +0.0000 0.0000 3.1416 +primID: 0 +startangle_c: 10 +endpose_c: -1 -1 10 +additionalactioncostmult: 1 +intermediateposes: 3 +0.0000 0.0000 3.9270 +-0.0250 -0.0250 3.9270 +-0.0500 -0.0500 3.9270 +primID: 1 +startangle_c: 10 +endpose_c: -6 -6 10 +additionalactioncostmult: 1 +intermediateposes: 10 +0.0000 0.0000 3.9270 +-0.0333 -0.0333 3.9270 +-0.0667 -0.0667 3.9270 +-0.1000 -0.1000 3.9270 +-0.1333 -0.1333 3.9270 +-0.1667 -0.1667 3.9270 +-0.2000 -0.2000 3.9270 +-0.2333 -0.2333 3.9270 +-0.2667 -0.2667 3.9270 +-0.3000 -0.3000 3.9270 +primID: 2 +startangle_c: 10 +endpose_c: 1 1 10 +additionalactioncostmult: 40 +intermediateposes: 3 +0.0000 0.0000 3.9270 +0.0250 0.0250 3.9270 +0.0500 0.0500 3.9270 +primID: 3 +startangle_c: 10 +endpose_c: -5 -7 11 +additionalactioncostmult: 2 +intermediateposes: 10 +0.0000 0.0000 3.9270 +-0.0341 -0.0341 3.9270 +-0.0678 -0.0684 3.9567 +-0.1000 -0.1043 4.0085 +-0.1302 -0.1418 4.0604 +-0.1584 -0.1809 4.1123 +-0.1846 -0.2213 4.1641 +-0.2086 -0.2631 4.2160 +-0.2304 -0.3060 4.2678 +-0.2500 -0.3500 4.3197 +primID: 4 +startangle_c: 10 +endpose_c: -7 -5 9 +additionalactioncostmult: 2 +intermediateposes: 10 +0.0000 0.0000 3.9270 +-0.0341 -0.0341 3.9270 +-0.0684 -0.0678 3.8973 +-0.1043 -0.1000 3.8455 +-0.1418 -0.1302 3.7936 +-0.1809 -0.1584 3.7417 +-0.2213 -0.1846 3.6899 +-0.2631 -0.2086 3.6380 +-0.3060 -0.2304 3.5862 +-0.3500 -0.2500 3.5343 +primID: 5 +startangle_c: 10 +endpose_c: 0 0 11 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 3.9270 +0.0000 0.0000 4.0252 +0.0000 0.0000 4.1233 +0.0000 0.0000 4.2215 +0.0000 0.0000 4.3197 +primID: 6 +startangle_c: 10 +endpose_c: 0 0 9 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 3.9270 +0.0000 0.0000 3.8288 +0.0000 0.0000 3.7306 +0.0000 0.0000 3.6325 +0.0000 0.0000 3.5343 +primID: 0 +startangle_c: 11 +endpose_c: -1 -2 11 +additionalactioncostmult: 1 +intermediateposes: 4 +0.0000 0.0000 4.3197 +-0.0167 -0.0333 4.3197 +-0.0333 -0.0667 4.3197 +-0.0500 -0.1000 4.3197 +primID: 1 +startangle_c: 11 +endpose_c: -3 -7 11 +additionalactioncostmult: 1 +intermediateposes: 9 +0.0000 0.0000 4.3197 +-0.0188 -0.0438 4.3197 +-0.0375 -0.0875 4.3197 +-0.0563 -0.1313 4.3197 +-0.0750 -0.1750 4.3197 +-0.0938 -0.2188 4.3197 +-0.1125 -0.2625 4.3197 +-0.1313 -0.3063 4.3197 +-0.1500 -0.3500 4.3197 +primID: 2 +startangle_c: 11 +endpose_c: 1 2 11 +additionalactioncostmult: 40 +intermediateposes: 4 +0.0000 0.0000 4.3197 +0.0167 0.0333 4.3197 +0.0333 0.0667 4.3197 +0.0500 0.1000 4.3197 +primID: 3 +startangle_c: 11 +endpose_c: -2 -8 12 +additionalactioncostmult: 2 +intermediateposes: 10 +0.0000 0.0000 4.3197 +-0.0177 -0.0427 4.3197 +-0.0354 -0.0854 4.3197 +-0.0523 -0.1283 4.3647 +-0.0668 -0.1722 4.4226 +-0.0787 -0.2168 4.4806 +-0.0880 -0.2621 4.5385 +-0.0947 -0.3078 4.5965 +-0.0987 -0.3538 4.6544 +-0.1000 -0.4000 4.7124 +primID: 4 +startangle_c: 11 +endpose_c: -5 -7 10 +additionalactioncostmult: 2 +intermediateposes: 12 +0.0000 0.0000 4.3197 +-0.0158 -0.0359 4.2840 +-0.0330 -0.0712 4.2483 +-0.0517 -0.1058 4.2126 +-0.0718 -0.1395 4.1769 +-0.0934 -0.1725 4.1412 +-0.1162 -0.2045 4.1055 +-0.1405 -0.2357 4.0698 +-0.1660 -0.2658 4.0341 +-0.1928 -0.2950 3.9984 +-0.2208 -0.3230 3.9627 +-0.2500 -0.3500 3.9270 +primID: 5 +startangle_c: 11 +endpose_c: 0 0 12 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 4.3197 +0.0000 0.0000 4.4179 +0.0000 0.0000 4.5160 +0.0000 0.0000 4.6142 +0.0000 0.0000 4.7124 +primID: 6 +startangle_c: 11 +endpose_c: 0 0 10 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 4.3197 +0.0000 0.0000 4.2215 +0.0000 0.0000 4.1233 +0.0000 0.0000 4.0252 +0.0000 0.0000 3.9270 +primID: 0 +startangle_c: 12 +endpose_c: 0 -2 12 +additionalactioncostmult: 1 +intermediateposes: 3 +0.0000 0.0000 4.7124 +0.0000 -0.0500 4.7124 +0.0000 -0.1000 4.7124 +primID: 1 +startangle_c: 12 +endpose_c: 0 -8 12 +additionalactioncostmult: 1 +intermediateposes: 9 +0.0000 0.0000 4.7124 +0.0000 -0.0500 4.7124 +0.0000 -0.1000 4.7124 +0.0000 -0.1500 4.7124 +0.0000 -0.2000 4.7124 +0.0000 -0.2500 4.7124 +0.0000 -0.3000 4.7124 +0.0000 -0.3500 4.7124 +0.0000 -0.4000 4.7124 +primID: 2 +startangle_c: 12 +endpose_c: 0 2 12 +additionalactioncostmult: 40 +intermediateposes: 3 +0.0000 0.0000 4.7124 +0.0000 0.0500 4.7124 +0.0000 0.1000 4.7124 +primID: 3 +startangle_c: 12 +endpose_c: 2 -8 13 +additionalactioncostmult: 2 +intermediateposes: 12 +0.0000 0.0000 4.7124 +0.0008 -0.0375 4.7481 +0.0033 -0.0750 4.7838 +0.0075 -0.1124 4.8195 +0.0134 -0.1496 4.8552 +0.0209 -0.1866 4.8909 +0.0300 -0.2232 4.9266 +0.0408 -0.2595 4.9623 +0.0532 -0.2954 4.9980 +0.0672 -0.3308 5.0337 +0.0828 -0.3657 5.0694 +0.1000 -0.4000 5.1051 +primID: 4 +startangle_c: 12 +endpose_c: -2 -8 11 +additionalactioncostmult: 2 +intermediateposes: 12 +0.0000 0.0000 4.7124 +-0.0008 -0.0375 4.6767 +-0.0033 -0.0750 4.6410 +-0.0075 -0.1124 4.6053 +-0.0134 -0.1496 4.5696 +-0.0209 -0.1866 4.5339 +-0.0300 -0.2232 4.4982 +-0.0408 -0.2595 4.4625 +-0.0532 -0.2954 4.4268 +-0.0672 -0.3308 4.3911 +-0.0828 -0.3657 4.3554 +-0.1000 -0.4000 4.3197 +primID: 5 +startangle_c: 12 +endpose_c: 0 0 13 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 4.7124 +0.0000 0.0000 4.8106 +0.0000 0.0000 4.9087 +0.0000 0.0000 5.0069 +0.0000 0.0000 5.1051 +primID: 6 +startangle_c: 12 +endpose_c: 0 0 11 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 4.7124 +0.0000 0.0000 4.6142 +0.0000 0.0000 4.5160 +0.0000 0.0000 4.4179 +0.0000 0.0000 4.3197 +primID: 0 +startangle_c: 13 +endpose_c: 1 -2 13 +additionalactioncostmult: 1 +intermediateposes: 4 +0.0000 0.0000 5.1051 +0.0167 -0.0333 5.1051 +0.0333 -0.0667 5.1051 +0.0500 -0.1000 5.1051 +primID: 1 +startangle_c: 13 +endpose_c: 3 -7 13 +additionalactioncostmult: 1 +intermediateposes: 9 +0.0000 0.0000 5.1051 +0.0188 -0.0438 5.1051 +0.0375 -0.0875 5.1051 +0.0563 -0.1313 5.1051 +0.0750 -0.1750 5.1051 +0.0938 -0.2188 5.1051 +0.1125 -0.2625 5.1051 +0.1313 -0.3063 5.1051 +0.1500 -0.3500 5.1051 +primID: 2 +startangle_c: 13 +endpose_c: -1 2 13 +additionalactioncostmult: 40 +intermediateposes: 4 +0.0000 0.0000 5.1051 +-0.0167 0.0333 5.1051 +-0.0333 0.0667 5.1051 +-0.0500 0.1000 5.1051 +primID: 3 +startangle_c: 13 +endpose_c: 5 -7 14 +additionalactioncostmult: 2 +intermediateposes: 12 +0.0000 0.0000 5.1051 +0.0158 -0.0359 5.1408 +0.0330 -0.0712 5.1765 +0.0517 -0.1058 5.2122 +0.0718 -0.1395 5.2479 +0.0934 -0.1725 5.2836 +0.1162 -0.2045 5.3193 +0.1405 -0.2357 5.3550 +0.1660 -0.2658 5.3907 +0.1928 -0.2950 5.4264 +0.2208 -0.3230 5.4621 +0.2500 -0.3500 5.4978 +primID: 4 +startangle_c: 13 +endpose_c: 2 -8 12 +additionalactioncostmult: 2 +intermediateposes: 10 +0.0000 0.0000 5.1051 +0.0177 -0.0427 5.1051 +0.0354 -0.0854 5.1051 +0.0523 -0.1283 5.0601 +0.0668 -0.1722 5.0021 +0.0787 -0.2168 4.9442 +0.0880 -0.2621 4.8862 +0.0947 -0.3078 4.8283 +0.0987 -0.3538 4.7703 +0.1000 -0.4000 4.7124 +primID: 5 +startangle_c: 13 +endpose_c: 0 0 14 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 5.1051 +0.0000 0.0000 5.2033 +0.0000 0.0000 5.3014 +0.0000 0.0000 5.3996 +0.0000 0.0000 5.4978 +primID: 6 +startangle_c: 13 +endpose_c: 0 0 12 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 5.1051 +0.0000 0.0000 5.0069 +0.0000 0.0000 4.9087 +0.0000 0.0000 4.8106 +0.0000 0.0000 4.7124 +primID: 0 +startangle_c: 14 +endpose_c: 1 -1 14 +additionalactioncostmult: 1 +intermediateposes: 3 +0.0000 0.0000 5.4978 +0.0250 -0.0250 5.4978 +0.0500 -0.0500 5.4978 +primID: 1 +startangle_c: 14 +endpose_c: 6 -6 14 +additionalactioncostmult: 1 +intermediateposes: 10 +0.0000 0.0000 5.4978 +0.0333 -0.0333 5.4978 +0.0667 -0.0667 5.4978 +0.1000 -0.1000 5.4978 +0.1333 -0.1333 5.4978 +0.1667 -0.1667 5.4978 +0.2000 -0.2000 5.4978 +0.2333 -0.2333 5.4978 +0.2667 -0.2667 5.4978 +0.3000 -0.3000 5.4978 +primID: 2 +startangle_c: 14 +endpose_c: -1 1 14 +additionalactioncostmult: 40 +intermediateposes: 3 +0.0000 0.0000 5.4978 +-0.0250 0.0250 5.4978 +-0.0500 0.0500 5.4978 +primID: 3 +startangle_c: 14 +endpose_c: 7 -5 15 +additionalactioncostmult: 2 +intermediateposes: 10 +0.0000 0.0000 5.4978 +0.0341 -0.0341 5.4978 +0.0684 -0.0678 5.5275 +0.1043 -0.1000 5.5793 +0.1418 -0.1302 5.6312 +0.1809 -0.1584 5.6830 +0.2213 -0.1846 5.7349 +0.2631 -0.2086 5.7868 +0.3060 -0.2304 5.8386 +0.3500 -0.2500 5.8905 +primID: 4 +startangle_c: 14 +endpose_c: 5 -7 13 +additionalactioncostmult: 2 +intermediateposes: 10 +0.0000 0.0000 5.4978 +0.0341 -0.0341 5.4978 +0.0678 -0.0684 5.4681 +0.1000 -0.1043 5.4162 +0.1302 -0.1418 5.3644 +0.1584 -0.1809 5.3125 +0.1846 -0.2213 5.2607 +0.2086 -0.2631 5.2088 +0.2304 -0.3060 5.1569 +0.2500 -0.3500 5.1051 +primID: 5 +startangle_c: 14 +endpose_c: 0 0 15 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 5.4978 +0.0000 0.0000 5.5960 +0.0000 0.0000 5.6941 +0.0000 0.0000 5.7923 +0.0000 0.0000 5.8905 +primID: 6 +startangle_c: 14 +endpose_c: 0 0 13 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 5.4978 +0.0000 0.0000 5.3996 +0.0000 0.0000 5.3014 +0.0000 0.0000 5.2033 +0.0000 0.0000 5.1051 +primID: 0 +startangle_c: 15 +endpose_c: 2 -1 15 +additionalactioncostmult: 1 +intermediateposes: 4 +0.0000 0.0000 5.8905 +0.0333 -0.0167 5.8905 +0.0667 -0.0333 5.8905 +0.1000 -0.0500 5.8905 +primID: 1 +startangle_c: 15 +endpose_c: 7 -3 15 +additionalactioncostmult: 1 +intermediateposes: 9 +0.0000 0.0000 5.8905 +0.0438 -0.0188 5.8905 +0.0875 -0.0375 5.8905 +0.1313 -0.0563 5.8905 +0.1750 -0.0750 5.8905 +0.2188 -0.0938 5.8905 +0.2625 -0.1125 5.8905 +0.3063 -0.1313 5.8905 +0.3500 -0.1500 5.8905 +primID: 2 +startangle_c: 15 +endpose_c: -2 1 15 +additionalactioncostmult: 40 +intermediateposes: 4 +0.0000 0.0000 5.8905 +-0.0333 0.0167 5.8905 +-0.0667 0.0333 5.8905 +-0.1000 0.0500 5.8905 +primID: 3 +startangle_c: 15 +endpose_c: 8 -2 0 +additionalactioncostmult: 2 +intermediateposes: 10 +0.0000 0.0000 5.8905 +0.0427 -0.0177 5.8905 +0.0854 -0.0354 5.8905 +0.1283 -0.0523 5.9355 +0.1722 -0.0668 5.9934 +0.2168 -0.0787 6.0514 +0.2621 -0.0880 6.1093 +0.3078 -0.0947 6.1673 +0.3538 -0.0987 6.2252 +0.4000 -0.1000 6.2832 +primID: 4 +startangle_c: 15 +endpose_c: 7 -5 14 +additionalactioncostmult: 2 +intermediateposes: 12 +0.0000 0.0000 5.8905 +0.0359 -0.0158 5.8548 +0.0712 -0.0330 5.8191 +0.1058 -0.0517 5.7834 +0.1395 -0.0718 5.7477 +0.1725 -0.0934 5.7120 +0.2045 -0.1162 5.6763 +0.2357 -0.1405 5.6406 +0.2658 -0.1660 5.6049 +0.2950 -0.1928 5.5692 +0.3230 -0.2208 5.5335 +0.3500 -0.2500 5.4978 +primID: 5 +startangle_c: 15 +endpose_c: 0 0 0 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 5.8905 +0.0000 0.0000 5.9887 +0.0000 0.0000 6.0868 +0.0000 0.0000 6.1850 +0.0000 0.0000 6.2832 +primID: 6 +startangle_c: 15 +endpose_c: 0 0 14 +additionalactioncostmult: 3 +intermediateposes: 5 +0.0000 0.0000 5.8905 +0.0000 0.0000 5.7923 +0.0000 0.0000 5.6941 +0.0000 0.0000 5.5960 +0.0000 0.0000 5.4978 diff --git a/config/runtime/mprim/dwa_local_planner_params.yaml b/config/runtime/mprim/dwa_local_planner_params.yaml deleted file mode 100755 index b8d766a..0000000 --- a/config/runtime/mprim/dwa_local_planner_params.yaml +++ /dev/null @@ -1,55 +0,0 @@ -base_local_planner: dwa_local_planner/DWAPlannerROS -DWAPlannerROS: - # Robot configuration - max_vel_x: 0.8 - min_vel_x: -0.2 - - max_vel_y: 0.0 # diff drive robot - min_vel_y: 0.0 # diff drive robot - - max_trans_vel: 0.8 # choose slightly less than the base's capability - min_trans_vel: 0.1 # this is the min trans velocity when there is negligible rotational velocity - trans_stopped_vel: 0.03 - - # Warning! - # do not set min_trans_vel to 0.0 otherwise dwa will always think translational velocities - # are non-negligible and small in place rotational velocities will be created. - - max_rot_vel: 1.0 # choose slightly less than the base's capability - min_rot_vel: 0.1 # this is the min angular velocity when there is negligible translational velocity - rot_stopped_vel: 0.1 - - acc_lim_x: 1.5 - acc_lim_y: 0.0 # diff drive robot - acc_limit_trans: 1.5 - acc_lim_theta: 2.0 - - # Goal tolerance - yaw_goal_tolerance: 0.03 # yaw_goal_tolerance > (sim_time * min_rot_vel) / 2 (from Navigation Tuning Guide) - xy_goal_tolerance: 0.08 # xy_goal_tolerance > (sim_time * min_vel_x) / 2 - latch_xy_goal_tolerance: true - - # Forward simulation - sim_time: 1.2 - vx_samples: 15 - vy_samples: 1 # diff drive robot, there is only one sample - vtheta_samples: 20 - - # Trajectory scoring - path_distance_bias: 64.0 # default: 32.0 mir: 32.0 - weighting for how much it should stick to the global path plan - goal_distance_bias: 12.0 # default: 24.0 mir: 48.0 - weighting for how much it should attempt to reach its goal - occdist_scale: 0.5 # default: 0.01 mir: 0.01 - weighting for how much the controller should avoid obstacles - forward_point_distance: 0.325 # default: 0.325 mir: 0.325 - how far along to place an additional scoring point - stop_time_buffer: 0.2 # default: 0.2 mir: 0.2 - amount of time a robot must stop before colliding for a valid traj. - scaling_speed: 0.25 # default: 0.25 mir: 0.25 - absolute velocity at which to start scaling the robot's footprint - max_scaling_factor: 0.2 # default: 0.2 mir: 0.2 - how much to scale the robot's footprint when at speed. - prune_plan: true - - # Oscillation prevention - oscillation_reset_dist: 0.05 # 0.05 - how far to travel before resetting oscillation flags, in m - oscillation_reset_angle: 0.2 # 0.2 - the angle the robot must turn before resetting Oscillation flags, in rad - - # Debugging - publish_traj_pc : true - publish_cost_grid_pc: true - global_frame_id: /odom # or /odom diff --git a/config/runtime/mprim/ekf.yaml b/config/runtime/mprim/ekf.yaml deleted file mode 100755 index ff05f12..0000000 --- a/config/runtime/mprim/ekf.yaml +++ /dev/null @@ -1,217 +0,0 @@ -# The frequency, in Hz, at which the filter will output a position estimate. Note that the filter will not begin -# computation until it receives at least one message from one of the inputs. It will then run continuously at the -# frequency specified here, regardless of whether it receives more measurements. Defaults to 30 if unspecified. -frequency: 50 - -# The period, in seconds, after which we consider a sensor to have timed out. In this event, we carry out a predict -# cycle on the EKF without correcting it. This parameter can be thought of as the minimum frequency with which the -# filter will generate new output. Defaults to 1 / frequency if not specified. -sensor_timeout: 0.1 - -# ekf_localization_node and ukf_localization_node both use a 3D omnidirectional motion model. If this parameter is -# set to true, no 3D information will be used in your state estimate. Use this if you are operating in a planar -# environment and want to ignore the effect of small variations in the ground plane that might otherwise be detected -# by, for example, an IMU. Defaults to false if unspecified. -two_d_mode: true - -# Use this parameter to provide an offset to the transform generated by ekf_localization_node. This can be used for -# future dating the transform, which is required for interaction with some other packages. Defaults to 0.0 if -# unspecified. -transform_time_offset: 0.0 - -# Use this parameter to specify how long the tf listener should wait for a transform to become available. -# Defaults to 0.0 if unspecified. -transform_timeout: 0.0 - -# If you're having trouble, try setting this to true, and then echo the /diagnostics_agg topic to see if the node is -# unhappy with any settings or data. -print_diagnostics: true - -# Debug settings. Not for the faint of heart. Outputs a ludicrous amount of information to the file specified by -# debug_out_file. I hope you like matrices! Please note that setting this to true will have strongly deleterious -# effects on the performance of the node. Defaults to false if unspecified. -debug: false - -# Defaults to "robot_localization_debug.txt" if unspecified. Please specify the full path. -debug_out_file: /path/to/debug/file.txt - -# Whether to broadcast the transformation over the /tf topic. Defaults to true if unspecified. -publish_tf: true - -# Whether to publish the acceleration state. Defaults to false if unspecified. -publish_acceleration: false - -# REP-105 (http://www.ros.org/reps/rep-0105.html) specifies four principal coordinate frames: base_link, odom, map, and -# earth. base_link is the coordinate frame that is affixed to the robot. Both odom and map are world-fixed frames. -# The robot's position in the odom frame will drift over time, but is accurate in the short term and should be -# continuous. The odom frame is therefore the best frame for executing local motion plans. The map frame, like the odom -# frame, is a world-fixed coordinate frame, and while it contains the most globally accurate position estimate for your -# robot, it is subject to discrete jumps, e.g., due to the fusion of GPS data or a correction from a map-based -# localization node. The earth frame is used to relate multiple map frames by giving them a common reference frame. -# ekf_localization_node and ukf_localization_node are not concerned with the earth frame. -# Here is how to use the following settings: -# 1. Set the map_frame, odom_frame, and base_link frames to the appropriate frame names for your system. -# 1a. If your system does not have a map_frame, just remove it, and make sure "world_frame" is set to the value of -# odom_frame. -# 2. If you are fusing continuous position data such as wheel encoder odometry, visual odometry, or IMU data, set -# "world_frame" to your odom_frame value. This is the default behavior for robot_localization's state estimation nodes. -# 3. If you are fusing global absolute position data that is subject to discrete jumps (e.g., GPS or position updates -# from landmark observations) then: -# 3a. Set your "world_frame" to your map_frame value -# 3b. MAKE SURE something else is generating the odom->base_link transform. Note that this can even be another state -# estimation node from robot_localization! However, that instance should *not* fuse the global data. -map_frame: map # Defaults to "map" if unspecified -odom_frame: $(arg tf_prefix)odom # Defaults to "odom" if unspecified -base_link_frame: $(arg tf_prefix)base_link # Defaults to "base_link" if unspecified -world_frame: $(arg tf_prefix)odom # Defaults to the value of odom_frame if unspecified - -# The filter accepts an arbitrary number of inputs from each input message type (robot_nav_msgs/Odometry, -# geometry_msgs/PoseWithCovarianceStamped, geometry_msgs/TwistWithCovarianceStamped, -# robot_sensor_msgs/Imu). To add an input, simply append the next number in the sequence to its "base" name, e.g., odom0, -# odom1, twist0, twist1, imu0, imu1, imu2, etc. The value should be the topic name. These parameters obviously have no -# default values, and must be specified. -odom0: odom - -# Each sensor reading updates some or all of the filter's state. These options give you greater control over which -# values from each measurement are fed to the filter. For example, if you have an odometry message as input, but only -# want to use its Z position value, then set the entire vector to false, except for the third entry. The order of the -# values is x, y, z, roll, pitch, yaw, vx, vy, vz, vroll, vpitch, vyaw, ax, ay, az. Note that not some message types -# do not provide some of the state variables estimated by the filter. For example, a TwistWithCovarianceStamped message -# has no pose information, so the first six values would be meaningless in that case. Each vector defaults to all false -# if unspecified, effectively making this parameter required for each sensor. -# see http://docs.ros.org/melodic/api/robot_localization/html/configuring_robot_localization.html -odom0_config: [false, false, false, # x y z - false, false, false, # roll pitch yaw - true, true, false, # vx vy vz - false, false, true, # vroll vpitch vyaw - false, false, false] # ax ay az - -# If you have high-frequency data or are running with a low frequency parameter value, then you may want to increase -# the size of the subscription queue so that more measurements are fused. -odom0_queue_size: 10 - -# [ADVANCED] Large messages in ROS can exhibit strange behavior when they arrive at a high frequency. This is a result -# of Nagle's algorithm. This option tells the ROS subscriber to use the tcpNoDelay option, which disables Nagle's -# algorithm. -odom0_nodelay: false - -# [ADVANCED] When measuring one pose variable with two sensors, a situation can arise in which both sensors under- -# report their covariances. This can lead to the filter rapidly jumping back and forth between each measurement as they -# arrive. In these cases, it often makes sense to (a) correct the measurement covariances, or (b) if velocity is also -# measured by one of the sensors, let one sensor measure pose, and the other velocity. However, doing (a) or (b) isn't -# always feasible, and so we expose the differential parameter. When differential mode is enabled, all absolute pose -# data is converted to velocity data by differentiating the absolute pose measurements. These velocities are then -# integrated as usual. NOTE: this only applies to sensors that provide pose measurements; setting differential to true -# for twist measurements has no effect. -odom0_differential: false - -# [ADVANCED] When the node starts, if this parameter is true, then the first measurement is treated as a "zero point" -# for all future measurements. While you can achieve the same effect with the differential paremeter, the key -# difference is that the relative parameter doesn't cause the measurement to be converted to a velocity before -# integrating it. If you simply want your measurements to start at 0 for a given sensor, set this to true. -odom0_relative: false - -# [ADVANCED] If your data is subject to outliers, use these threshold settings, expressed as Mahalanobis distances, to -# control how far away from the current vehicle state a sensor measurement is permitted to be. Each defaults to -# numeric_limits::max() if unspecified. It is strongly recommended that these parameters be removed if not -# required. Data is specified at the level of pose and twist variables, rather than for each variable in isolation. -# For messages that have both pose and twist data, the parameter specifies to which part of the message we are applying -# the thresholds. -#odom0_pose_rejection_threshold: 5 -#odom0_twist_rejection_threshold: 1 - -# Further input parameter examples -# see http://docs.ros.org/melodic/api/robot_localization/html/configuring_robot_localization.html -imu0: imu_data -imu0_config: [false, false, false, # x y z - false, false, true, # roll pitch yaw - false, false, false, # vx vy vz - false, false, true, # vroll vpitch vyaw - true, false, false] # ax ay az -imu0_nodelay: false -imu0_differential: false -imu0_relative: true -imu0_queue_size: 10 -#imu0_pose_rejection_threshold: 0.8 # Note the difference in parameter names -#imu0_twist_rejection_threshold: 0.8 # -#imu0_linear_acceleration_rejection_threshold: 0.8 # - -# [ADVANCED] Some IMUs automatically remove acceleration due to gravity, and others don't. If yours doesn't, please set -# this to true, and *make sure* your data conforms to REP-103, specifically, that the data is in ENU frame. -imu0_remove_gravitational_acceleration: false - -# [ADVANCED] The EKF and UKF models follow a standard predict/correct cycle. During prediction, if there is no -# acceleration reference, the velocity at time t+1 is simply predicted to be the same as the velocity at time t. During -# correction, this predicted value is fused with the measured value to produce the new velocity estimate. This can be -# problematic, as the final velocity will effectively be a weighted average of the old velocity and the new one. When -# this velocity is the integrated into a new pose, the result can be sluggish covergence. This effect is especially -# noticeable with LIDAR data during rotations. To get around it, users can try inflating the process_noise_covariance -# for the velocity variable in question, or decrease the variance of the variable in question in the measurement -# itself. In addition, users can also take advantage of the control command being issued to the robot at the time we -# make the prediction. If control is used, it will get converted into an acceleration term, which will be used during -# predicition. Note that if an acceleration measurement for the variable in question is available from one of the -# inputs, the control term will be ignored. -# Whether or not we use the control input during predicition. Defaults to false. -use_control: false -# Whether the input (assumed to be cmd_vel) is a geometry_msgs/Twist or geometry_msgs/TwistStamped message. Defaults to -# false. -stamped_control: false -# The last issued control command will be used in prediction for this period. Defaults to 0.2. -control_timeout: 0.2 -# Which velocities are being controlled. Order is vx, vy, vz, vroll, vpitch, vyaw. -control_config: [true, false, false, false, false, true] -# Places limits on how large the acceleration term will be. Should match your robot's kinematics. -acceleration_limits: [1.3, 0.0, 0.0, 0.0, 0.0, 3.4] -# Acceleration and deceleration limits are not always the same for robots. -deceleration_limits: [1.3, 0.0, 0.0, 0.0, 0.0, 4.5] -# If your robot cannot instantaneously reach its acceleration limit, the permitted change can be controlled with these -# gains -acceleration_gains: [0.8, 0.0, 0.0, 0.0, 0.0, 0.9] -# If your robot cannot instantaneously reach its deceleration limit, the permitted change can be controlled with these -# gains -deceleration_gains: [1.0, 0.0, 0.0, 0.0, 0.0, 1.0] - -# [ADVANCED] The process noise covariance matrix can be difficult to tune, and can vary for each application, so it is -# exposed as a configuration parameter. This matrix represents the noise we add to the total error after each -# prediction step. The better the omnidirectional motion model matches your system, the smaller these values can be. -# However, if users find that a given variable is slow to converge, one approach is to increase the -# process_noise_covariance diagonal value for the variable in question, which will cause the filter's predicted error -# to be larger, which will cause the filter to trust the incoming measurement more during correction. The values are -# ordered as x, y, z, roll, pitch, yaw, vx, vy, vz, vroll, vpitch, vyaw, ax, ay, az. Defaults to the matrix below if -# unspecified. -process_noise_covariance: [0.05, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0.05, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0.06, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0.03, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0.03, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0.06, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0.025, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0.025, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0.04, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.01, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.01, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.02, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.01, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.01, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.015] - -# [ADVANCED] This represents the initial value for the state estimate error covariance matrix. Setting a diagonal -# value (variance) to a large value will result in rapid convergence for initial measurements of the variable in -# question. Users should take care not to use large values for variables that will not be measured directly. The values -# are ordered as x, y, z, roll, pitch, yaw, vx, vy, vz, vroll, vpitch, vyaw, ax, ay, az. Defaults to the matrix below -#if unspecified. -initial_estimate_covariance: [100.0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 100.0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 1e-9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 1e-9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 1e-9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 1.0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 1e-9, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 1e-9, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 1e-9, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 1e-9, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1e-9, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1.0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10.0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10.0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1e-9] diff --git a/config/runtime/mprim/genmprim_unicycle_highcost_5cm.m b/config/runtime/mprim/genmprim_unicycle_highcost_5cm.m deleted file mode 100755 index 2810593..0000000 --- a/config/runtime/mprim/genmprim_unicycle_highcost_5cm.m +++ /dev/null @@ -1,280 +0,0 @@ -% /* -% * Copyright (c) 2008, Maxim Likhachev -% * All rights reserved. -% * -% * Redistribution and use in source and binary forms, with or without -% * modification, are permitted provided that the following conditions are met: -% * -% * * Redistributions of source code must retain the above copyright -% * notice, this list of conditions and the following disclaimer. -% * * Redistributions in binary form must reproduce the above copyright -% * notice, this list of conditions and the following disclaimer in the -% * documentation and/or other materials provided with the distribution. -% * * Neither the name of the Carnegie Mellon University nor the names of its -% * contributors may be used to endorse or promote products derived from -% * this software without specific prior written permission. -% * -% * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -% * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -% * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -% * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE -% * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -% * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -% * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -% * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -% * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -% * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -% * POSSIBILITY OF SUCH DAMAGE. -% */ - -function[] = genmprim_unicycle_highcost_5cm(outfilename) - -% -%generates motion primitives and saves them into file -% -%written by Maxim Likhachev -%--------------------------------------------------- -% - -%defines - -UNICYCLE_MPRIM_16DEGS = 1; - - -if UNICYCLE_MPRIM_16DEGS == 1 - resolution = 0.05; - numberofangles = 16; %preferably a power of 2, definitely multiple of 8 - numberofprimsperangle = 7; - - %multipliers (multiplier is used as costmult*cost) - forwardcostmult = 1; - backwardcostmult = 40; - forwardandturncostmult = 2; - sidestepcostmult = 10; - turninplacecostmult = 20; - - %note, what is shown x,y,theta changes (not absolute numbers) - - %0 degreees - basemprimendpts0_c = zeros(numberofprimsperangle, 4); %x,y,theta,costmult - %x aligned with the heading of the robot, angles are positive - %counterclockwise - %0 theta change - basemprimendpts0_c(1,:) = [1 0 0 forwardcostmult]; - basemprimendpts0_c(2,:) = [8 0 0 forwardcostmult]; - basemprimendpts0_c(3,:) = [-1 0 0 backwardcostmult]; - %1/16 theta change - basemprimendpts0_c(4,:) = [8 1 1 forwardandturncostmult]; - basemprimendpts0_c(5,:) = [8 -1 -1 forwardandturncostmult]; - %turn in place - basemprimendpts0_c(6,:) = [0 0 1 turninplacecostmult]; - basemprimendpts0_c(7,:) = [0 0 -1 turninplacecostmult]; - - %45 degrees - basemprimendpts45_c = zeros(numberofprimsperangle, 4); %x,y,theta,costmult (multiplier is used as costmult*cost) - %x aligned with the heading of the robot, angles are positive - %counterclockwise - %0 theta change - basemprimendpts45_c(1,:) = [1 1 0 forwardcostmult]; - basemprimendpts45_c(2,:) = [6 6 0 forwardcostmult]; - basemprimendpts45_c(3,:) = [-1 -1 0 backwardcostmult]; - %1/16 theta change - basemprimendpts45_c(4,:) = [5 7 1 forwardandturncostmult]; - basemprimendpts45_c(5,:) = [7 5 -1 forwardandturncostmult]; - %turn in place - basemprimendpts45_c(6,:) = [0 0 1 turninplacecostmult]; - basemprimendpts45_c(7,:) = [0 0 -1 turninplacecostmult]; - - %22.5 degrees - basemprimendpts22p5_c = zeros(numberofprimsperangle, 4); %x,y,theta,costmult (multiplier is used as costmult*cost) - %x aligned with the heading of the robot, angles are positive - %counterclockwise - %0 theta change - basemprimendpts22p5_c(1,:) = [2 1 0 forwardcostmult]; - basemprimendpts22p5_c(2,:) = [6 3 0 forwardcostmult]; - basemprimendpts22p5_c(3,:) = [-2 -1 0 backwardcostmult]; - %1/16 theta change - basemprimendpts22p5_c(4,:) = [5 4 1 forwardandturncostmult]; - basemprimendpts22p5_c(5,:) = [7 2 -1 forwardandturncostmult]; - %turn in place - basemprimendpts22p5_c(6,:) = [0 0 1 turninplacecostmult]; - basemprimendpts22p5_c(7,:) = [0 0 -1 turninplacecostmult]; - -else - fprintf(1, 'ERROR: undefined mprims type\n'); - return; -end; - - -fout = fopen(outfilename, 'w'); - - -%write the header -fprintf(fout, 'resolution_m: %f\n', resolution); -fprintf(fout, 'numberofangles: %d\n', numberofangles); -fprintf(fout, 'totalnumberofprimitives: %d\n', numberofprimsperangle*numberofangles); - -%iterate over angles -for angleind = 1:numberofangles - - figure(1); - hold off; - - text(0, 0, int2str(angleind)); - - %iterate over primitives - for primind = 1:numberofprimsperangle - fprintf(fout, 'primID: %d\n', primind-1); - fprintf(fout, 'startangle_c: %d\n', angleind-1); - - %current angle - currentangle = (angleind-1)*2*pi/numberofangles; - currentangle_36000int = round((angleind-1)*36000/numberofangles); - - %compute which template to use - if (rem(currentangle_36000int, 9000) == 0) - basemprimendpts_c = basemprimendpts0_c(primind,:); - angle = currentangle; - elseif (rem(currentangle_36000int, 4500) == 0) - basemprimendpts_c = basemprimendpts45_c(primind,:); - angle = currentangle - 45*pi/180; - elseif (rem(currentangle_36000int-7875, 9000) == 0) - basemprimendpts_c = basemprimendpts33p75_c(primind,:); - basemprimendpts_c(1) = basemprimendpts33p75_c(primind, 2); %reverse x and y - basemprimendpts_c(2) = basemprimendpts33p75_c(primind, 1); - basemprimendpts_c(3) = -basemprimendpts33p75_c(primind, 3); %reverse the angle as well - angle = currentangle - 78.75*pi/180; - fprintf(1, '78p75\n'); - elseif (rem(currentangle_36000int-6750, 9000) == 0) - basemprimendpts_c = basemprimendpts22p5_c(primind,:); - basemprimendpts_c(1) = basemprimendpts22p5_c(primind, 2); %reverse x and y - basemprimendpts_c(2) = basemprimendpts22p5_c(primind, 1); - basemprimendpts_c(3) = -basemprimendpts22p5_c(primind, 3); %reverse the angle as well - %fprintf(1, '%d %d %d onto %d %d %d\n', basemprimendpts22p5_c(1), basemprimendpts22p5_c(2), basemprimendpts22p5_c(3), ... - % basemprimendpts_c(1), basemprimendpts_c(2), basemprimendpts_c(3)); - angle = currentangle - 67.5*pi/180; - fprintf(1, '67p5\n'); - elseif (rem(currentangle_36000int-5625, 9000) == 0) - basemprimendpts_c = basemprimendpts11p25_c(primind,:); - basemprimendpts_c(1) = basemprimendpts11p25_c(primind, 2); %reverse x and y - basemprimendpts_c(2) = basemprimendpts11p25_c(primind, 1); - basemprimendpts_c(3) = -basemprimendpts11p25_c(primind, 3); %reverse the angle as well - angle = currentangle - 56.25*pi/180; - fprintf(1, '56p25\n'); - elseif (rem(currentangle_36000int-3375, 9000) == 0) - basemprimendpts_c = basemprimendpts33p75_c(primind,:); - angle = currentangle - 33.75*pi/180; - fprintf(1, '33p75\n'); - elseif (rem(currentangle_36000int-2250, 9000) == 0) - basemprimendpts_c = basemprimendpts22p5_c(primind,:); - angle = currentangle - 22.5*pi/180; - fprintf(1, '22p5\n'); - elseif (rem(currentangle_36000int-1125, 9000) == 0) - basemprimendpts_c = basemprimendpts11p25_c(primind,:); - angle = currentangle - 11.25*pi/180; - fprintf(1, '11p25\n'); - else - fprintf(1, 'ERROR: invalid angular resolution. angle = %d\n', currentangle_36000int); - return; - end; - - %now figure out what action will be - baseendpose_c = basemprimendpts_c(1:3); - additionalactioncostmult = basemprimendpts_c(4); - endx_c = round(baseendpose_c(1)*cos(angle) - baseendpose_c(2)*sin(angle)); - endy_c = round(baseendpose_c(1)*sin(angle) + baseendpose_c(2)*cos(angle)); - endtheta_c = rem(angleind - 1 + baseendpose_c(3), numberofangles); - endpose_c = [endx_c endy_c endtheta_c]; - - fprintf(1, 'rotation angle=%f\n', angle*180/pi); - - if baseendpose_c(2) == 0 & baseendpose_c(3) == 0 - %fprintf(1, 'endpose=%d %d %d\n', endpose_c(1), endpose_c(2), endpose_c(3)); - end; - - %generate intermediate poses (remember they are w.r.t 0,0 (and not - %centers of the cells) - numofsamples = 10; - intermcells_m = zeros(numofsamples,3); - if UNICYCLE_MPRIM_16DEGS == 1 - startpt = [0 0 currentangle]; - endpt = [endpose_c(1)*resolution endpose_c(2)*resolution ... - rem(angleind - 1 + baseendpose_c(3), numberofangles)*2*pi/numberofangles]; - intermcells_m = zeros(numofsamples,3); - if ((endx_c == 0 & endy_c == 0) | baseendpose_c(3) == 0) %turn in place or move forward - for iind = 1:numofsamples - intermcells_m(iind,:) = [startpt(1) + (endpt(1) - startpt(1))*(iind-1)/(numofsamples-1) ... - startpt(2) + (endpt(2) - startpt(2))*(iind-1)/(numofsamples-1) ... - 0]; - rotation_angle = (baseendpose_c(3) ) * (2*pi/numberofangles); - intermcells_m(iind,3) = rem(startpt(3) + (rotation_angle)*(iind-1)/(numofsamples-1), 2*pi); - - end; - else %unicycle-based move forward or backward - R = [cos(startpt(3)) sin(endpt(3)) - sin(startpt(3)); - sin(startpt(3)) -(cos(endpt(3)) - cos(startpt(3)))]; - S = pinv(R)*[endpt(1) - startpt(1); endpt(2) - startpt(2)]; - l = S(1); - tvoverrv = S(2); - rv = (baseendpose_c(3)*2*pi/numberofangles + l/tvoverrv); - tv = tvoverrv*rv; - - if l < 0 - fprintf(1, 'WARNING: l = %d < 0 -> bad action start/end points\n', l); - l = 0; - end; - %compute rv - %rv = baseendpose_c(3)*2*pi/numberofangles; - %compute tv - %tvx = (endpt(1) - startpt(1))*rv/(sin(endpt(3)) - sin(startpt(3))) - %tvy = -(endpt(2) - startpt(2))*rv/(cos(endpt(3)) - cos(startpt(3))) - %tv = (tvx + tvy)/2.0; - %generate samples - for iind = 1:numofsamples - dt = (iind-1)/(numofsamples-1); - - %dtheta = rv*dt + startpt(3); - %intermcells_m(iind,:) = [startpt(1) + tv/rv*(sin(dtheta) - sin(startpt(3))) ... - % startpt(2) - tv/rv*(cos(dtheta) - cos(startpt(3))) ... - % dtheta]; - - if(dt*tv < l) - intermcells_m(iind,:) = [startpt(1) + dt*tv*cos(startpt(3)) ... - startpt(2) + dt*tv*sin(startpt(3)) ... - startpt(3)]; - else - dtheta = rv*(dt - l/tv) + startpt(3); - intermcells_m(iind,:) = [startpt(1) + l*cos(startpt(3)) + tvoverrv*(sin(dtheta) - sin(startpt(3))) ... - startpt(2) + l*sin(startpt(3)) - tvoverrv*(cos(dtheta) - cos(startpt(3))) ... - dtheta]; - end; - end; - %correct - errorxy = [endpt(1) - intermcells_m(numofsamples,1) ... - endpt(2) - intermcells_m(numofsamples,2)]; - fprintf(1, 'l=%f errx=%f erry=%f\n', l, errorxy(1), errorxy(2)); - interpfactor = [0:1/(numofsamples-1):1]; - intermcells_m(:,1) = intermcells_m(:,1) + errorxy(1)*interpfactor'; - intermcells_m(:,2) = intermcells_m(:,2) + errorxy(2)*interpfactor'; - end; - end; - - %write out - fprintf(fout, 'endpose_c: %d %d %d\n', endpose_c(1), endpose_c(2), endpose_c(3)); - fprintf(fout, 'additionalactioncostmult: %d\n', additionalactioncostmult); - fprintf(fout, 'intermediateposes: %d\n', size(intermcells_m,1)); - for interind = 1:size(intermcells_m, 1) - fprintf(fout, '%.4f %.4f %.4f\n', intermcells_m(interind,1), intermcells_m(interind,2), intermcells_m(interind,3)); - end; - - plot(intermcells_m(:,1), intermcells_m(:,2)); - axis([-0.3 0.3 -0.3 0.3]); - text(intermcells_m(numofsamples,1), intermcells_m(numofsamples,2), int2str(endpose_c(3))); - hold on; - - end; - grid; - pause; -end; - -fclose('all'); diff --git a/config/runtime/mprim/genmprim_unicycle_highcost_5cm.py b/config/runtime/mprim/genmprim_unicycle_highcost_5cm.py deleted file mode 100755 index c8801c0..0000000 --- a/config/runtime/mprim/genmprim_unicycle_highcost_5cm.py +++ /dev/null @@ -1,416 +0,0 @@ -#!/usr/bin/env python3 -# -# Copyright (c) 2016, David Conner (Christopher Newport University) -# Based on genmprim_unicycle.m -# Copyright (c) 2008, Maxim Likhachev -# All rights reserved. -# converted by libermate utility (https://github.com/awesomebytes/libermate) -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# * Neither the name of the Carnegie Mellon University nor the names of its -# contributors may be used to endorse or promote products derived from -# this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -import numpy as np -import rospkg - -# if available import pylab (from matlibplot) -matplotlib_found = False -try: - import matplotlib.pylab as plt - - matplotlib_found = True -except ImportError: - pass - - -def matrix_size(mat, elem=None): - if not elem: - return mat.shape - else: - return mat.shape[int(elem) - 1] - - -def genmprim_unicycle(outfilename, visualize=False, separate_plots=False): - visualize = matplotlib_found and visualize # Plot the primitives - - # Local Variables: basemprimendpts22p5_c, endtheta_c, endx_c, - # baseendpose_c, additionalactioncostmult, fout, numofsamples, - # basemprimendpts45_c, primind, basemprimendpts0_c, rv, angle, outfilename, - # numberofangles, startpt, UNICYCLE_MPRIM_16DEGS, sidestepcostmult, - # rotation_angle, basemprimendpts_c, forwardandturncostmult, - # forwardcostmult, turninplacecostmult, endpose_c, backwardcostmult, - # interpfactor, S, R, tvoverrv, dtheta, intermcells_m, tv, dt, - # currentangle, numberofprimsperangle, resolution, currentangle_36000int, - # l, iind, errorxy, interind, endy_c, angleind, endpt - # Function calls: plot, cos, pi, grid, figure, genmprim_unicycle, text, - # int2str, pause, axis, sin, pinv, fprintf, fclose, rem, zeros, fopen, - # round, size - # % - # %generates motion primitives and saves them into file - # % - # %written by Maxim Likhachev - # %--------------------------------------------------- - # % - # %defines - UNICYCLE_MPRIM_16DEGS = 1.0 - if UNICYCLE_MPRIM_16DEGS == 1.0: - resolution = 0.05 - numberofangles = 16 - # %preferably a power of 2, definitely multiple of 8 - numberofprimsperangle = 7 - # %multipliers (multiplier is used as costmult*cost) - forwardcostmult = 1.0 - backwardcostmult = 40.0 - forwardandturncostmult = 2.0 - # sidestepcostmult = 10.0 - turninplacecostmult = 20.0 - # %note, what is shown x,y,theta changes (not absolute numbers) - # %0 degreees - basemprimendpts0_c = np.zeros((numberofprimsperangle, 4)) - # %x,y,theta,costmult - # %x aligned with the heading of the robot, angles are positive - # %counterclockwise - # %0 theta change - basemprimendpts0_c[0, :] = np.array(np.hstack((1.0, 0.0, 0.0, forwardcostmult))) - basemprimendpts0_c[1, :] = np.array(np.hstack((8.0, 0.0, 0.0, forwardcostmult))) - basemprimendpts0_c[2, :] = np.array(np.hstack((-1.0, 0.0, 0.0, backwardcostmult))) - # %1/16 theta change - basemprimendpts0_c[3, :] = np.array(np.hstack((8.0, 1.0, 1.0, forwardandturncostmult))) - basemprimendpts0_c[4, :] = np.array(np.hstack((8.0, -1.0, -1.0, forwardandturncostmult))) - # %turn in place - basemprimendpts0_c[5, :] = np.array(np.hstack((0.0, 0.0, 1.0, turninplacecostmult))) - basemprimendpts0_c[6, :] = np.array(np.hstack((0.0, 0.0, -1.0, turninplacecostmult))) - # %45 degrees - basemprimendpts45_c = np.zeros((numberofprimsperangle, 4)) - # %x,y,theta,costmult (multiplier is used as costmult*cost) - # %x aligned with the heading of the robot, angles are positive - # %counterclockwise - # %0 theta change - basemprimendpts45_c[0, :] = np.array(np.hstack((1.0, 1.0, 0.0, forwardcostmult))) - basemprimendpts45_c[1, :] = np.array(np.hstack((6.0, 6.0, 0.0, forwardcostmult))) - basemprimendpts45_c[2, :] = np.array(np.hstack((-1.0, -1.0, 0.0, backwardcostmult))) - # %1/16 theta change - basemprimendpts45_c[3, :] = np.array(np.hstack((5.0, 7.0, 1.0, forwardandturncostmult))) - basemprimendpts45_c[4, :] = np.array(np.hstack((7.0, 5.0, -1.0, forwardandturncostmult))) - # %turn in place - basemprimendpts45_c[5, :] = np.array(np.hstack((0.0, 0.0, 1.0, turninplacecostmult))) - basemprimendpts45_c[6, :] = np.array(np.hstack((0.0, 0.0, -1.0, turninplacecostmult))) - # %22.5 degrees - basemprimendpts22p5_c = np.zeros((numberofprimsperangle, 4)) - # %x,y,theta,costmult (multiplier is used as costmult*cost) - # %x aligned with the heading of the robot, angles are positive - # %counterclockwise - # %0 theta change - basemprimendpts22p5_c[0, :] = np.array(np.hstack((2.0, 1.0, 0.0, forwardcostmult))) - basemprimendpts22p5_c[1, :] = np.array(np.hstack((6.0, 3.0, 0.0, forwardcostmult))) - basemprimendpts22p5_c[2, :] = np.array(np.hstack((-2.0, -1.0, 0.0, backwardcostmult))) - # %1/16 theta change - basemprimendpts22p5_c[3, :] = np.array(np.hstack((5.0, 4.0, 1.0, forwardandturncostmult))) - basemprimendpts22p5_c[4, :] = np.array(np.hstack((7.0, 2.0, -1.0, forwardandturncostmult))) - # %turn in place - basemprimendpts22p5_c[5, :] = np.array(np.hstack((0.0, 0.0, 1.0, turninplacecostmult))) - basemprimendpts22p5_c[6, :] = np.array(np.hstack((0.0, 0.0, -1.0, turninplacecostmult))) - else: - print('ERROR: undefined mprims type\n') - return [] - - fout = open(outfilename, 'w') - # %write the header - fout.write('resolution_m: %f\n' % (resolution)) - fout.write('numberofangles: %d\n' % (numberofangles)) - fout.write('totalnumberofprimitives: %d\n' % (numberofprimsperangle * numberofangles)) - # %iterate over angles - for angleind in np.arange(1.0, (numberofangles) + 1): - currentangle = ((angleind - 1) * 2.0 * np.pi) / numberofangles - currentangle_36000int = np.round((angleind - 1) * 36000.0 / numberofangles) - if visualize: - if separate_plots: - fig = plt.figure(angleind) - plt.title('angle {:2.0f} (= {:3.1f} degrees)'.format(angleind - 1, currentangle_36000int / 100.0)) - else: - fig = plt.figure(1) - - plt.axis('equal') - plt.axis([-10 * resolution, 10 * resolution, -10 * resolution, 10 * resolution]) - ax = fig.add_subplot(1, 1, 1) - major_ticks = np.arange(-8 * resolution, 9 * resolution, 4 * resolution) - minor_ticks = np.arange(-8 * resolution, 9 * resolution, resolution) - ax.set_xticks(major_ticks) - ax.set_xticks(minor_ticks, minor=True) - ax.set_yticks(major_ticks) - ax.set_yticks(minor_ticks, minor=True) - ax.grid(which='minor', alpha=0.5) - ax.grid(which='major', alpha=0.9) - - # %iterate over primitives - for primind in np.arange(1.0, (numberofprimsperangle) + 1): - fout.write('primID: %d\n' % (primind - 1)) - fout.write('startangle_c: %d\n' % (angleind - 1)) - # %current angle - # %compute which template to use - if (currentangle_36000int % 9000) == 0: - basemprimendpts_c = basemprimendpts0_c[int(primind) - 1, :] - angle = currentangle - elif (currentangle_36000int % 4500) == 0: - basemprimendpts_c = basemprimendpts45_c[int(primind) - 1, :] - angle = currentangle - 45.0 * np.pi / 180.0 - - # commented out because basemprimendpts33p75_c is undefined - # elif ((currentangle_36000int - 7875) % 9000) == 0: - # basemprimendpts_c = ( - # 1 * basemprimendpts33p75_c[primind, :] - # ) # 1* to force deep copy to avoid reference update below - # basemprimendpts_c[0] = basemprimendpts33p75_c[primind, 1] - # # %reverse x and y - # basemprimendpts_c[1] = basemprimendpts33p75_c[primind, 0] - # basemprimendpts_c[2] = -basemprimendpts33p75_c[primind, 2] - # # %reverse the angle as well - # angle = currentangle - (78.75 * np.pi) / 180.0 - # print('78p75\n') - - elif ((currentangle_36000int - 6750) % 9000) == 0: - basemprimendpts_c = ( - 1 * basemprimendpts22p5_c[int(primind) - 1, :] - ) # 1* to force deep copy to avoid reference update below - basemprimendpts_c[0] = basemprimendpts22p5_c[int(primind) - 1, 1] - # %reverse x and y - basemprimendpts_c[1] = basemprimendpts22p5_c[int(primind) - 1, 0] - basemprimendpts_c[2] = -basemprimendpts22p5_c[int(primind) - 1, 2] - # %reverse the angle as well - # print( - # '%d : %d %d %d onto %d %d %d\n' - # % ( - # primind - 1, - # basemprimendpts22p5_c[int(primind) - 1, 0], - # basemprimendpts22p5_c[int(primind) - 1, 1], - # basemprimendpts22p5_c[int(primind) - 1, 2], - # basemprimendpts_c[0], - # basemprimendpts_c[1], - # basemprimendpts_c[2], - # ) - # ) - angle = currentangle - (67.5 * np.pi) / 180.0 - print('67p5\n') - - # commented out because basemprimendpts11p25_c is undefined - # elif ((currentangle_36000int - 5625) % 9000) == 0: - # basemprimendpts_c = ( - # 1 * basemprimendpts11p25_c[primind, :] - # ) # 1* to force deep copy to avoid reference update below - # basemprimendpts_c[0] = basemprimendpts11p25_c[primind, 1] - # # %reverse x and y - # basemprimendpts_c[1] = basemprimendpts11p25_c[primind, 0] - # basemprimendpts_c[2] = -basemprimendpts11p25_c[primind, 2] - # # %reverse the angle as well - # angle = currentangle - (56.25 * np.pi) / 180.0 - # print('56p25\n') - - # commented out because basemprimendpts33p75_c is undefined - # elif ((currentangle_36000int - 3375) % 9000) == 0: - # basemprimendpts_c = basemprimendpts33p75_c[int(primind), :] - # angle = currentangle - (33.75 * np.pi) / 180.0 - # print('33p75\n') - - elif ((currentangle_36000int - 2250) % 9000) == 0: - basemprimendpts_c = basemprimendpts22p5_c[int(primind) - 1, :] - angle = currentangle - (22.5 * np.pi) / 180.0 - print('22p5\n') - - # commented out because basemprimendpts11p25_c is undefined - # elif ((currentangle_36000int - 1125) % 9000) == 0: - # basemprimendpts_c = basemprimendpts11p25_c[int(primind), :] - # angle = currentangle - (11.25 * np.pi) / 180.0 - # print('11p25\n') - - else: - print('ERROR: invalid angular resolution. angle = %d\n' % currentangle_36000int) - return [] - - # %now figure out what action will be - baseendpose_c = basemprimendpts_c[0:3] - additionalactioncostmult = basemprimendpts_c[3] - endx_c = np.round((baseendpose_c[0] * np.cos(angle)) - (baseendpose_c[1] * np.sin(angle))) - endy_c = np.round((baseendpose_c[0] * np.sin(angle)) + (baseendpose_c[1] * np.cos(angle))) - endtheta_c = np.fmod(angleind - 1 + baseendpose_c[2], numberofangles) - endpose_c = np.array(np.hstack((endx_c, endy_c, endtheta_c))) - print("endpose_c=", endpose_c) - print(('rotation angle=%f\n' % (angle * 180.0 / np.pi))) - # if np.logical_and(baseendpose_c[1] == 0., baseendpose_c[2] == 0.): - # %fprintf(1, 'endpose=%d %d %d\n', endpose_c(1), endpose_c(2), endpose_c(3)); - - # %generate intermediate poses (remember they are w.r.t 0,0 (and not - # %centers of the cells) - numofsamples = 10 - intermcells_m = np.zeros((numofsamples, 3)) - if UNICYCLE_MPRIM_16DEGS == 1.0: - startpt = np.array(np.hstack((0.0, 0.0, currentangle))) - endpt = np.array( - np.hstack( - ( - (endpose_c[0] * resolution), - (endpose_c[1] * resolution), - ( - ((np.fmod(angleind - 1 + baseendpose_c[2], numberofangles)) * 2.0 * np.pi) - / numberofangles - ), - ) - ) - ) - - print("startpt =", startpt) - print("endpt =", endpt) - intermcells_m = np.zeros((numofsamples, 3)) - if np.logical_or(np.logical_and(endx_c == 0.0, endy_c == 0.0), baseendpose_c[2] == 0.0): - # %turn in place or move forward - for iind in np.arange(1.0, (numofsamples) + 1): - fraction = float(iind - 1) / (numofsamples - 1) - intermcells_m[int(iind) - 1, :] = np.array( - ( - startpt[0] + (endpt[0] - startpt[0]) * fraction, - startpt[1] + (endpt[1] - startpt[1]) * fraction, - 0, - ) - ) - rotation_angle = baseendpose_c[2] * (2.0 * np.pi / numberofangles) - intermcells_m[int(iind) - 1, 2] = np.fmod(startpt[2] + rotation_angle * fraction, (2.0 * np.pi)) - # print " ",iind," of ",numofsamples," fraction=",fraction," rotation=",rotation_angle - - else: - # %unicycle-based move forward or backward (http://sbpl.net/node/53) - R = np.array( - np.vstack( - ( - np.hstack((np.cos(startpt[2]), np.sin(endpt[2]) - np.sin(startpt[2]))), - np.hstack((np.sin(startpt[2]), -np.cos(endpt[2]) + np.cos(startpt[2]))), - ) - ) - ) - - S = np.dot(np.linalg.pinv(R), np.array(np.vstack((endpt[0] - startpt[0], endpt[1] - startpt[1])))) - l = S[0] - tvoverrv = S[1] - rv = (baseendpose_c[2] * 2.0 * np.pi / numberofangles) + l / tvoverrv - tv = tvoverrv * rv - - # print "R=\n",R - # print "Rpi=\n",np.linalg.pinv(R) - # print "S=\n",S - # print "l=",l - # print "tvoverrv=",tvoverrv - # print "rv=",rv - # print "tv=",tv - - if l < 0.0: - print(('WARNING: l = %f < 0 -> bad action start/end points\n' % (l))) - l = 0.0 - - # %compute rv - # %rv = baseendpose_c(3)*2*pi/numberofangles; - # %compute tv - # %tvx = (endpt(1) - startpt(1))*rv/(sin(endpt(3)) - sin(startpt(3))) - # %tvy = -(endpt(2) - startpt(2))*rv/(cos(endpt(3)) - cos(startpt(3))) - # %tv = (tvx + tvy)/2.0; - # %generate samples - for iind in np.arange(1, numofsamples + 1): - dt = (iind - 1) / (numofsamples - 1) - # %dtheta = rv*dt + startpt(3); - # %intermcells_m(iind,:) = [startpt(1) + tv/rv*(sin(dtheta) - sin(startpt(3))) ... - # % startpt(2) - tv/rv*(cos(dtheta) - cos(startpt(3))) ... - # % dtheta]; - if (dt * tv) < l: - intermcells_m[int(iind) - 1, :] = np.array( - np.hstack( - ( - startpt[0] + dt * tv * np.cos(startpt[2]), - startpt[1] + dt * tv * np.sin(startpt[2]), - startpt[2], - ) - ) - ) - else: - dtheta = rv * (dt - l / tv) + startpt[2] - intermcells_m[int(iind) - 1, :] = np.array( - np.hstack( - ( - startpt[0] - + l * np.cos(startpt[2]) - + tvoverrv * (np.sin(dtheta) - np.sin(startpt[2])), - startpt[1] - + l * np.sin(startpt[2]) - - tvoverrv * (np.cos(dtheta) - np.cos(startpt[2])), - dtheta, - ) - ) - ) - - # %correct - errorxy = np.array( - np.hstack( - ( - endpt[0] - intermcells_m[int(numofsamples) - 1, 0], - endpt[1] - intermcells_m[int(numofsamples) - 1, 1], - ) - ) - ) - # print('l=%f errx=%f erry=%f\n'%(l, errorxy[0], errorxy[1])) - interpfactor = np.array( - np.hstack((np.arange(0.0, 1.0 + (1.0 / (numofsamples)), 1.0 / (numofsamples - 1)))) - ) - - # print "intermcells_m=",intermcells_m - # print "interp'=",interpfactor.conj().T - - intermcells_m[:, 0] = intermcells_m[:, 0] + errorxy[0] * interpfactor.conj().T - intermcells_m[:, 1] = intermcells_m[:, 1] + errorxy[1] * interpfactor.conj().T - - # %write out - fout.write('endpose_c: %d %d %d\n' % (endpose_c[0], endpose_c[1], endpose_c[2])) - fout.write('additionalactioncostmult: %d\n' % (additionalactioncostmult)) - fout.write('intermediateposes: %d\n' % (matrix_size(intermcells_m, 1.0))) - for interind in np.arange(1.0, (matrix_size(intermcells_m, 1.0)) + 1): - fout.write( - '%.4f %.4f %.4f\n' - % ( - intermcells_m[int(interind) - 1, 0], - intermcells_m[int(interind) - 1, 1], - intermcells_m[int(interind) - 1, 2], - ) - ) - - if visualize: - plt.plot(intermcells_m[:, 0], intermcells_m[:, 1], linestyle="-", marker="o") - plt.text(endpt[0], endpt[1], '{:2.0f}'.format(endpose_c[2])) - # if (visualize): - # plt.waitforbuttonpress() # uncomment to plot each primitive set one at a time - - fout.close() - if visualize: - # plt.waitforbuttonpress() # hold until buttom pressed - plt.show() # Keep windows open until the program is terminated - return [] - - -if __name__ == "__main__": - rospack = rospkg.RosPack() - outfilename = rospack.get_path('mir_navigation') + '/mprim/unicycle_highcost_5cm.mprim' - genmprim_unicycle(outfilename, visualize=True) diff --git a/config/runtime/mprim/localization.yaml b/config/runtime/mprim/localization.yaml deleted file mode 100644 index 2ed52b8..0000000 --- a/config/runtime/mprim/localization.yaml +++ /dev/null @@ -1,36 +0,0 @@ -Amcl: - use_map_topic: true - odom_model_type: "diff-corrected" - gui_publish_rate: 5.0 - save_pose_rate: 0.5 - laser_max_beams: 300 - laser_min_range: -1.0 - laser_max_range: -1.0 - min_particles: 1000 - max_particles: 3000 - kld_err: 0.05 - kld_z: 0.99 - odom_alpha1: 0.02 - odom_alpha2: 0.01 - odom_alpha3: 0.01 - odom_alpha4: 0.02 - laser_z_hit: 0.5 - laser_z_short: 0.05 - laser_z_max: 0.05 - laser_z_rand: 0.5 - laser_sigma_hit: 0.2 - laser_lambda_short: 0.1 - laser_model_type: "likelihood_field" - laser_likelihood_max_dist: 1.0 - update_min_d: 0.05 - update_min_a: 0.05 - odom_frame_id: odom - base_frame_id: base_link - global_frame_id: map - resample_interval: 1 - transform_tolerance: 0.2 - recovery_alpha_slow: 0.001 - recovery_alpha_fast: 0.001 - initial_pose_x: 0.0 - initial_pose_y: 0.0 - initial_pose_a: 0.0 diff --git a/config/runtime/mprim/mapping.yaml b/config/runtime/mprim/mapping.yaml deleted file mode 100644 index e58fce3..0000000 --- a/config/runtime/mprim/mapping.yaml +++ /dev/null @@ -1,63 +0,0 @@ -SlamToolBox: - # Plugin params - solver_plugin: solver_plugins::CeresSolver - ceres_linear_solver: SPARSE_NORMAL_CHOLESKY - ceres_preconditioner: SCHUR_JACOBI - ceres_trust_strategy: LEVENBERG_MARQUARDT - ceres_dogleg_type: TRADITIONAL_DOGLEG - ceres_loss_function: None - - # ROS Parameters - odom_frame: odom - map_frame: map - base_frame: base_link - scan_topic: /scan - mode: mapping #localization - debug_logging: false - throttle_scans: 1 - transform_publish_period: 0.02 #if 0 never publishes odometry - map_update_interval: 10.0 - resolution: 0.05 - max_laser_range: 20.0 #for rastering images - minimum_time_interval: 0.5 - transform_timeout: 0.2 - tf_buffer_duration: 14400. - stack_size_to_use: 40000000 #// program needs a larger stack size to serialize large maps - enable_interactive_mode: true - - # General Parameters - use_scan_matching: true - use_scan_barycenter: true - minimum_travel_distance: 0.5 - minimum_travel_heading: 0.5 - scan_buffer_size: 10 - scan_buffer_maximum_scan_distance: 10 - link_match_minimum_response_fine: 0.1 - link_scan_maximum_distance: 1.5 - loop_search_maximum_distance: 3.0 - do_loop_closing: true - loop_match_minimum_chain_size: 10 - loop_match_maximum_variance_coarse: 3.0 - loop_match_minimum_response_coarse: 0.35 - loop_match_minimum_response_fine: 0.45 - - # Correlation Parameters - Correlation Parameters - correlation_search_space_dimension: 0.5 - correlation_search_space_resolution: 0.01 - correlation_search_space_smear_deviation: 0.1 - - # Correlation Parameters - Loop Closure Parameters - loop_search_space_dimension: 8.0 - loop_search_space_resolution: 0.05 - loop_search_space_smear_deviation: 0.03 - - # Scan Matcher Parameters - distance_variance_penalty: 0.5 - angle_variance_penalty: 1.0 - - fine_search_angle_offset: 0.00349 - coarse_search_angle_offset: 0.349 - coarse_angle_resolution: 0.0349 - minimum_angle_penalty: 0.9 - minimum_distance_penalty: 0.5 - use_response_expansion: true diff --git a/config/runtime/mprim/mpc_local_planner_params.yaml b/config/runtime/mprim/mpc_local_planner_params.yaml deleted file mode 100755 index aa6a592..0000000 --- a/config/runtime/mprim/mpc_local_planner_params.yaml +++ /dev/null @@ -1,106 +0,0 @@ -base_local_planner: mpc_local_planner/MpcLocalPlannerROS -MpcLocalPlannerROS: - - odom_topic: odom - - ## Robot settings - robot: - type: "unicycle" - unicycle: - max_vel_x: 0.5 - max_vel_x_backwards: 0.3 - max_vel_theta: 0.3 - acc_lim_x: 0.4 # deactive bounds with zero - dec_lim_x: 0.4 # deactive bounds with zero - acc_lim_theta: 0.6 # deactivate bounds with zero - - ## Footprint model for collision avoidance - footprint_model: - type: "point" - is_footprint_dynamic: False - - ## Collision avoidance - collision_avoidance: - min_obstacle_dist: 0.5 # Note, this parameter must be chosen w.r.t. the footprint_model - enable_dynamic_obstacles: False - force_inclusion_dist: 0.5 - cutoff_dist: 2.0 - include_costmap_obstacles: True - costmap_obstacles_behind_robot_dist: 1.5 - collision_check_no_poses: 5 - - ## Planning grid - grid: - type: "fd_grid" - grid_size_ref: 20 # Set horizon length here (T = (grid_size_ref-1) * dt_ref); Note, also check max_global_plan_lookahead_dist - dt_ref: 0.3 # and here the corresponding temporal resolution - xf_fixed: [False, False, False] # Unfix final state -> we use terminal cost below - warm_start: True - collocation_method: "forward_differences" - cost_integration_method: "left_sum" - variable_grid: - enable: False # We want a fixed grid - min_dt: 0.0; - max_dt: 10.0; - grid_adaptation: - enable: True - dt_hyst_ratio: 0.1 - min_grid_size: 2 - max_grid_size: 50 - - ## Planning options - planning: - objective: - type: "quadratic_form" # minimum_time requires grid/variable_grid/enable=True and grid/xf_fixed set properly - quadratic_form: - state_weights: [2.0, 2.0, 0.25] - control_weights: [0.1, 0.05] - integral_form: False - terminal_cost: - type: "quadratic" # can be "none" - quadratic: - final_state_weights: [10.0, 10.0, 0.5] - terminal_constraint: - type: "none" # can be "none" - l2_ball: - weight_matrix: [1.0, 1.0, 1.0] - radius: 5 - - ## Controller options - controller: - outer_ocp_iterations: 1 - xy_goal_tolerance: 0.05 - yaw_goal_tolerance: 0.04 - global_plan_overwrite_orientation: False - global_plan_prune_distance: 1.5 - allow_init_with_backward_motion: True - max_global_plan_lookahead_dist: 1.0 # Check horizon length - force_reinit_new_goal_dist: 1.0 - force_reinit_new_goal_angular: 1.57 - force_reinit_num_steps: 0 - prefer_x_feedback: False - publish_ocp_results: True - - ## Solver settings - solver: - type: "ipopt" - ipopt: - iterations: 100 - max_cpu_time: -1.0 - ipopt_numeric_options: - tol: 1e-3 - ipopt_string_options: - linear_solver: "mumps" - hessian_approximation: "exact" # exact or limited-memory - lsq_lm: - iterations: 10 - weight_init_eq: 2 - weight_init_ineq: 2 - weight_init_bounds: 2 - weight_adapt_factor_eq: 1.5 - weight_adapt_factor_ineq: 1.5 - weight_adapt_factor_bounds: 1.5 - weight_adapt_max_eq: 500 - weight_adapt_max_ineq: 500 - weight_adapt_max_bounds: 500 - diff --git a/config/runtime/mprim/mqtt_general.yaml b/config/runtime/mprim/mqtt_general.yaml deleted file mode 100644 index bc22191..0000000 --- a/config/runtime/mprim/mqtt_general.yaml +++ /dev/null @@ -1,8 +0,0 @@ -# MQTT: -# Name: T800 -# Host: 172.20.235.170 -# Port: 1885 -# Client_ID: T800 -# Username: robotics -# Password: robotics -# Keep_Alive: 60 \ No newline at end of file diff --git a/config/runtime/mprim/ros_diff_drive_controller.yaml b/config/runtime/mprim/ros_diff_drive_controller.yaml deleted file mode 100755 index 90b2db6..0000000 --- a/config/runtime/mprim/ros_diff_drive_controller.yaml +++ /dev/null @@ -1,71 +0,0 @@ -# ----------------------------------- -left_wheel : 'left_wheel_joint' -right_wheel : 'right_wheel_joint' -publish_rate: 50 # this is what the real MiR platform publishes (default: 50) -# These covariances are exactly what the real MiR platform publishes -pose_covariance_diagonal : [0.00001, 0.00001, 1000000.0, 1000000.0, 1000000.0, 1000.0] -twist_covariance_diagonal: [0.1, 0.1, 1000000.0, 1000000.0, 1000000.0, 1000.0] -enable_odom_tf: true -enable_wheel_tf: true -allow_multiple_cmd_vel_publishers: true -# open_loop: false -# Wheel separation and diameter. These are both optional. -# diff_drive_controller will attempt to read either one or both from the -# URDF if not specified as a parameter. -# We don't set the value here because it's different for each MiR type (100, 250, ...), and -# the plugin figures out the correct values. -wheel_separation : 0.5106 -wheel_radius : 0.1 - -# Wheel separation and radius multipliers -wheel_separation_multiplier: 1.0 # default: 1.0 -wheel_radius_multiplier : 1.0 # default: 1.0 - -# Velocity commands timeout [s], default 0.5 -cmd_vel_timeout: 1.0 - -# frame_ids (same as real MiR platform) -base_frame_id: base_link # default: base_link base_link -odom_frame_id: odom # default: odom - -# Velocity and acceleration limits -# Whenever a min_* is unspecified, default to -max_* -linear: - x: - has_velocity_limits : true - max_velocity : 1.5 # m/s; move_base max_vel_x: 0.8 - min_velocity : -1.5 # m/s - has_acceleration_limits: true - max_acceleration : 0.5 # m/s^2; move_base acc_lim_x: 1.5 - min_acceleration : -0.5 # m/s^2 - has_jerk_limits : true - max_jerk : 3.0 # m/s^3 -angular: - z: - has_velocity_limits : true - max_velocity : 1.0 # rad/s; move_base max_rot_vel: 1.0 - min_velocity : -1.0 - has_acceleration_limits: true - max_acceleration : 3.0 # rad/s^2; move_base acc_lim_th: 2.0 - has_jerk_limits : true - max_jerk : 2.5 # rad/s^3 - -left_wheel_joint: - lookup_name: WheelPlugin - max_publish_rate: 50 - mesurement_topic: left_encoder - frame_id: left_wheel_link - wheel_topic: /left_wheel - subscribe_queue_size: 1 - command_timeout: 5.0 - origin : [0.0, 0.255, 0.075, 0.0, 0.0, 0.0] # origin from base_frame_id - -right_wheel_joint: - lookup_name: WheelPlugin - max_publish_rate: 50 - mesurement_topic: right_encoder - frame_id: right_wheel_link - wheel_topic: /right_wheel - subscribe_queue_size: 1 - command_timeout: 5.0 - origin : [0.0, -0.255, 0.075, 0.0, 0.0, 0.0] # origin from base_frame_id diff --git a/config/runtime/mprim/sbpl_global_params.yaml b/config/runtime/mprim/sbpl_global_params.yaml deleted file mode 100755 index ec2ac75..0000000 --- a/config/runtime/mprim/sbpl_global_params.yaml +++ /dev/null @@ -1,10 +0,0 @@ -base_global_planner: SBPLLatticePlanner -SBPLLatticePlanner: - environment_type: XYThetaLattice - planner_type: ARAPlanner - allocated_time: 10.0 - initial_epsilon: 1.0 - force_scratch_limit: 10000 - forward_search: true - nominalvel_mpersecs: 0.2 - timetoturn45degsinplace_secs: 0.6 # = 0.6 rad/s diff --git a/config/runtime/mprim/sick_line_guidance_mls.yaml b/config/runtime/mprim/sick_line_guidance_mls.yaml deleted file mode 100644 index 959a137..0000000 --- a/config/runtime/mprim/sick_line_guidance_mls.yaml +++ /dev/null @@ -1,61 +0,0 @@ -bus: - device: can0 - driver_plugin: can::SocketCANInterface - master_allocator: canopen::SimpleMaster::Allocator -sync: - interval_ms: 10 - overflow: 0 -# -# heartbeat: # simple heartbeat producer (optional, not supported by OLS or MLS, do not enable heartbeats) -# rate: 100 # heartbeat rate (1/rate in seconds) -# msg: "77f#05" # message to send, cansend format: heartbeat of node 127 with status 5=Started -nodes: - f_mlse: - id: 0x01 # CAN-Node-ID of can device, default: Node-ID 10=0x0A for OLS and MLS - eds_pkg: sick_line_guidance # package name for relative path - eds_file: mls/SICK-MLS.eds # path to EDS/DCF file - publish: ["1001","1018sub1","1018sub4","2021sub1!","2021sub2!","2021sub3!","2021sub4!","2022!"] - # MLS: 1001 = error register, 1018sub1 = VendorID, 1018sub4 = SerialNumber, TPDO1 = 0x2021sub1 to 0x2021sub4 and 0x2022 - - # sick_line_guidance configuration of this node: - sick_device_family: "MLS" # can devices of OLS10, OLS20 or MLS family currently supported - sick_topic: "f_mlse" # MLS_Measurement messages are published in topic "/mls" - subscribe_queue_size: 1 - sick_frame_id: "f_mlse" # MLS_Measurement messages are published frame_id "mls_measurement_frame" - - # device configuration of writable parameter by dcf_overlay: "objectindex": "parametervalue" - # example: "2027": "0x01" # Object 2027 (sensorFlipped, defaultvalue 0x00) will be configured with value 0x01 - # dcf_overlay: - # "2028sub1": "0x01" # UseMarkers (0 = disable marker detection, 1 = enable marker detection), UINT8, DataType=0x0005, defaultvalue=0 - # "2028sub2": "0x02" # MarkerStyle (0 = disable marker detection, 1 = standard mode, 2 = extended mode), UINT8, DataType=0x0005, defaultvalue=0 - # "2028sub3": "0x01" # FailSafeMode (0 = disabled, 1 = enabled), UINT8, DataType=0x0005, defaultvalue=0 - # "2025": "1000" # Min.Level, UINT16, DataType=0x0006, defaultvalue=600 - # "2026": "1" # Offset [mm] Nullpunkt, INT16, DataType=0x0003, defaultvalue=0 - # "2027": "0x01" # sensorFlipped, UINT8, DataType=0x0005, defaultvalue=0 - # "2029": "0x01" # LockTeach, UINT8, DataType=0x0005, defaultvalue=0 - # - - b_mlse: - id: 0x02 # CAN-Node-ID of can device, default: Node-ID 10=0x0A for OLS and MLS - eds_pkg: sick_line_guidance # package name for relative path - eds_file: mls/SICK-MLS.eds # path to EDS/DCF file - publish: ["1001","1018sub1","1018sub4","2021sub1!","2021sub2!","2021sub3!","2021sub4!","2022!"] - # MLS: 1001 = error register, 1018sub1 = VendorID, 1018sub4 = SerialNumber, TPDO1 = 0x2021sub1 to 0x2021sub4 and 0x2022 - - # sick_line_guidance configuration of this node: - sick_device_family: "MLS" # can devices of OLS10, OLS20 or MLS family currently supported - sick_topic: "b_mlse" # MLS_Measurement messages are published in topic "/mls" - subscribe_queue_size: 1 - sick_frame_id: "b_mlse" # MLS_Measurement messages are published frame_id "mls_measurement_frame" - - # device configuration of writable parameter by dcf_overlay: "objectindex": "parametervalue" - # example: "2027": "0x01" # Object 2027 (sensorFlipped, defaultvalue 0x00) will be configured with value 0x01 - # dcf_overlay: - # "2028sub1": "0x01" # UseMarkers (0 = disable marker detection, 1 = enable marker detection), UINT8, DataType=0x0005, defaultvalue=0 - # "2028sub2": "0x02" # MarkerStyle (0 = disable marker detection, 1 = standard mode, 2 = extended mode), UINT8, DataType=0x0005, defaultvalue=0 - # "2028sub3": "0x01" # FailSafeMode (0 = disabled, 1 = enabled), UINT8, DataType=0x0005, defaultvalue=0 - # "2025": "1000" # Min.Level, UINT16, DataType=0x0006, defaultvalue=600 - # "2026": "1" # Offset [mm] Nullpunkt, INT16, DataType=0x0003, defaultvalue=0 - # "2027": "0x01" # sensorFlipped, UINT8, DataType=0x0005, defaultvalue=0 - # "2029": "0x01" # LockTeach, UINT8, DataType=0x0005, defaultvalue=0 - # \ No newline at end of file diff --git a/config/runtime/recovery_behaviors_params.yaml b/config/runtime/recovery_behaviors_params.yaml index 90192d0..ac7b080 100644 --- a/config/runtime/recovery_behaviors_params.yaml +++ b/config/runtime/recovery_behaviors_params.yaml @@ -1,5 +1,6 @@ # ================================================================================================= -# recovery_core — bộ recovery behavior (gen-2, tick-based) và tham số vận hành. +# recovery_behaviors_params.yaml — bộ recovery behavior (recovery_core, gen-2 tick-based) và tham số +# vận hành. Sắp xếp lại theo bốn phép đo của PathMonitor ngày 4/9/2026; từ 6/9/2026 các cờ do EnvMonitor cấp (env_monitor_params.yaml). # # Quy ước comment: dòng mô tả = LÀ GÌ / vì sao; `► Chỉnh:` = tăng giảm theo triệu chứng nào. # @@ -7,19 +8,30 @@ # `Test/recovery_core/test/config/recovery_behaviors_params.yaml` — sửa tham số vận hành thì sửa ở # đây, đừng sửa bản test. # -# Danh sách này được `recovery_core::RecoveryRegistry` đọc; caller (RecoveryRunner của move_base2) -# truyền namespace `recovery` vào. Khoá `recovery_behaviors:` trong `move_base_common_params.yaml` -# thuộc về move_base cũ và KHÔNG liên quan tới file này. +# Ai đọc: `recovery_core::RecoveryRegistry` (khối `behaviors` + tham số từng behavior) và +# `move_base2::RecoveryRunner` (khối `routes`), cả hai qua namespace `recovery`. Khoá +# `recovery_behaviors:` trong `move_base_common_params.yaml` thuộc về move_base cũ, KHÔNG liên quan. +# +# BỐ CỤC FILE: +# 1. behaviors — registry mọi behavior CÓ THỂ dùng (khai ở đây chưa làm nó chạy). +# 2. routes — trigger nào chạy chuỗi behavior nào. Đây là chỗ bốn phép đo gặp nhau. +# 3. tham số behavior — wait / clear / rotate / back_up / detour_path. +# 4. symbol -> library — bảng nạp Boost.DLL. +# 5. SBPLDetourPlanner — instance SBPL riêng mà detour_path dùng. # ================================================================================================= recovery: - # `behaviors` là registry mọi plugin/instance CÓ THỂ dùng. Thứ tự ở đây chỉ là thứ tự nạp, - # không còn quyết định luồng chạy. `routes` bên dưới chọn riêng chuỗi theo trigger. + # =============================================================================================== + # 1. REGISTRY — mọi behavior CÓ THỂ dùng + # =============================================================================================== # - # wait : không di chuyển. Vật cản động (người, xe khác) tự đi qua là xong. - # clear : xoá vật cản đã tích trong costmap, gần trước rồi xa sau. - # rotate : quay tại chỗ cho costmap nhìn lại xung quanh. - # back_up: LÙI — hướng robot không có sensor, nên xếp cuối cùng. + # Thứ tự ở đây chỉ là thứ tự nạp, KHÔNG quyết định luồng chạy — `routes` mới quyết định. + # + # wait : đứng yên. Vật cản động (người, xe khác) tự đi qua là xong. Rẻ, an toàn nhất. + # clear : xoá vật cản đã tích trong costmap, gần trước rồi xa sau. + # rotate : quay tại chỗ cho sensor quét lại xung quanh. + # detour_path : LẬP LẠI CẢ ĐƯỜNG tới đích chặng bằng SBPL (từ 2/9 không còn vá đường vòng). + # back_up : LÙI — hướng robot không có sensor, rủi ro cao nhất. # # ► Chỉnh: khai ở đây KHÔNG làm behavior chạy — phải đưa tên nó vào một `route` bên dưới. Một # `type` được phép khai nhiều `name` khác nhau để có nhiều instance khác tuning (vd một @@ -34,56 +46,116 @@ recovery: - {name: rotate, type: RotateRecovery} - {name: back_up, type: BackUpRecovery} - # trigger -> tên behavior thử tuần tự; lần lỗi kế tiếp cùng trigger mới tiến tới phần tử tiếp - # theo của route đó. Đường quay về sau khi một behavior kết thúc (contract 2026-08-04b): - # - planning_failed -> quay về PLANNING lập plan lại (không có plan nào để bám); - # - controlling/oscillation-> quay về CONTROLLING bám tiếp GLOBAL PATH CŨ, KHÔNG lập plan lại - # (thay plan trong lúc chạy là việc riêng của planner_frequency); - # riêng khi leo thang từ PLANNING vì mất pose thì về PLANNING; - # - behavior họ detour (output kPath, vd DetourPathRecovery) nộp path mới -> path đó được áp - # và robot bám tiếp — cách duy nhất một recovery được thay plan. - # Robot đi được quá `oscillation_distance` thì mọi cursor route được reset — ngân sách recovery - # đầy lại theo tiến độ thật (2026-08-04). + # =============================================================================================== + # 2. ROUTES — trigger nào chạy chuỗi behavior nào + # =============================================================================================== # - # Ý NGHĨA TỪNG TRIGGER: - # planning_failed : planner CÓ dữ liệu nhưng không tìm được đường. - # controlling_failed : MẤT DỮ LIỆU/LỆNH — controller không ra lệnh (kể cả mất pose) quá - # `controller_patience`, hoặc mất pose ngay trong PLANNING, hoặc costmap - # stale liên tục quá `sensor_patience`. - # oscillation : quẩn trong bán kính `oscillation_distance` quá `oscillation_timeout`. - # path_blocked : DỰ BÁO tuyến phía trước bị chắn (giám sát tuyến). - # off_path : DỰ BÁO robot đã lệch khỏi plan quá ngưỡng. + # Sáu trigger, chia hai nhóm theo HẬU QUẢ KHI CẠN ROUTE. Route KHÔNG thuộc về bộ giám sát nào: + # chúng là hợp đồng của StateMachine, ai giơ cờ cũng đi qua đây. Từ 6/9/2026 chỉ còn EnvMonitor + # giơ cờ (`env_monitor_params.yaml`), PathMonitor cũ đã xoá. Ba verdict đổ vào ba trigger giám sát, + # `off_path` không còn nguồn (giữ route cho đủ hợp đồng, không bao giờ nổ): # - # ► Chỉnh route: - # - route RỖNG = tắt hẳn trigger đó. `path_blocked`/`off_path` được phép rỗng; ba route còn lại - # bắt buộc có ít nhất một behavior (config validate chặn). + # Verdict EnvMonitor Trigger Cạn route thì... + # ------------------ ------------------ ------------------------------------------------- + # (không phải verdict) planning_failed ABORT chặng + # (không phải verdict) controlling_failed ABORT chặng + # kStall oscillation ABORT chặng <- đòi đi mà không dịch chuyển thật + # kUnreachable path_blocked KHOÁ, đi tiếp <- điểm thoát 2 m dọc plan mất liên thông + # (không có nguồn) off_path KHOÁ, đi tiếp <- chưa verdict nào giơ + # kContact collision KHOÁ, đi tiếp <- quỹ đạo thật sắp chạm, đã phanh + # + # Chia vai giữa hai file: `env_monitor_params.yaml` quyết định KHI NÀO giơ cờ và giơ hay chỉ ghi + # (`stall`/`unreachable`/`contact` -> `action: recover|log`, ngưỡng, cửa sổ, `retry_backoff`, + # `replan_budget`, stand-down); file này quyết định giơ cờ rồi thì LÀM GÌ (behavior nào, thứ tự, + # bao nhiêu lượt). Muốn tắt một verdict thì đặt `action: log` bên kia, không xoá route bên này. + # + # HỢP ĐỒNG CHUNG cho mọi route (đọc một lần, áp cho cả sáu): + # + # - Cursor: lần lỗi kế tiếp CÙNG trigger mới tiến tới phần tử tiếp theo của route đó. Mỗi trigger + # một cursor riêng — kContact cạn route không làm kUnreachable mất lượt. + # - Nạp lại ngân sách: robot đi được quá `oscillation_distance` thì MỌI cursor reset (tiến độ + # thật, 2026-08-04). Ngoài ra recovery THÀNH CÔNG + NỘP PATH MỚI cũng reset cursor của trigger + # đó NGAY — nhưng chỉ khi robot đã dịch >= `recovery_reset_min_travel` kể từ lần nạp trước + # (2026-09-04): path mới mà robot không đi nổi một bước thì tính như một lần THẤT BẠI, nếu + # không thì "replan thành công -> bị chặn tại chỗ -> replan" lặp vô hạn (sim 4/9: 249 vòng). + # - Đường quay về sau khi behavior kết thúc (contract 2026-08-04b): + # planning_failed -> về PLANNING lập plan lại (không có plan nào để bám); + # các trigger còn lại -> về CONTROLLING bám tiếp GLOBAL PATH CŨ, KHÔNG lập plan lại; + # behavior họ kPath (detour_path) nộp path mới -> path đó được áp và robot bám tiếp. Đây là + # cách DUY NHẤT một recovery được thay plan. + # - Cạn route ở nhóm DỰ BÁO KHÔNG phải ABORT (contract 2026-08-05e): plan vẫn hợp lệ và controller + # vẫn ra lệnh được, nên robot bám tiếp plan cũ và trigger bị KHOÁ tới khi đi quá + # `oscillation_distance`. Đường ABORT hợp lệ đi qua `controlling_failed` (controller thật sự + # hết ra lệnh quá `controller_patience`), `planning_failed`, hoặc `oscillation`. + # + # ► Chỉnh route (áp cho cả sáu): + # - route RỖNG = TẮT HẲN trigger đó. Bốn route giám sát (path_blocked/off_path/collision/oscillation) được phép rỗng; hai route + # `planning_failed`/`controlling_failed` bắt buộc có ít nhất một behavior (validate chặn). # - route được phép LẶP behavior: mỗi lần xuất hiện là một lượt thử (`[detour, wait, detour]`). # - route dài hơn = kiên nhẫn hơn nhưng chậm báo lỗi lên fleet hơn. # - thứ tự nên đi từ RẺ và AN TOÀN tới ĐẮT và RỦI RO: wait/clear -> rotate -> detour -> back_up. routes: + # --- Nhóm A: hỏng THẬT — cạn route là ABORT chặng --------------------------------------------- + + # Planner CÓ dữ liệu nhưng không tìm được đường (quá `planner_patience` hoặc + # `max_planning_retries`). Chưa từng có plan để bám, nên chỉ có cách dọn dữ liệu rồi thử lại. + # ► Chỉnh: `clear` đứng sau `wait` vì xoá costmap là đánh đổi — mất cả vật cản THẬT vừa thấy. planning_failed: [wait, clear] + + # MẤT LỆNH: controller không ra lệnh hợp lệ quá `controller_patience` (kể cả mất pose, kể cả bị + # kContact giữ phanh sau khi route `collision` đã cạn — quy tắc A), hoặc costmap stale quá `sensor_patience`. + # ► Chỉnh: đây là lưới cuối trước ABORT. Thêm `back_up` vào ĐẦU (`[back_up, detour_path]`) nếu + # chấp nhận cho robot tự lùi khi bế tắc — lập lại đường từ đúng pose đang kẹt thường trả lại + # cùng một path (sim 4/9), muốn thoát phải ĐỔI POSE trước. back_up có kiểm costmap sau lưng + # nhưng phía sau là vùng mù sensor: đó là đánh đổi an toàn, không phải mặc định. controlling_failed: [detour_path] - oscillation: [wait] - # Cursor reset (2026-08-05): recovery THÀNH CÔNG + NỘP PATH MỚI (detour) thì cursor của trigger - # đó reset NGAY — lần chắn kế tiếp là sự cố mới, detour được chạy lại. Từ chối/thất bại mới ăn - # vào ngân sách route. - # - # Cạn route KHÔNG còn nghĩa là ABORT (contract 2026-08-05e): `path_blocked`/`off_path` là DỰ - # BÁO, plan vẫn hợp lệ và controller vẫn ra lệnh được, nên robot bám tiếp plan cũ và trigger bị - # KHOÁ tới khi đi được quá `oscillation_distance`. Đường ABORT hợp lệ duy nhất đi qua - # `controlling_failed` (controller thật sự hết ra lệnh quá controller_patience) hoặc - # `planning_failed`. + + # Hai nguồn cùng đổ vào đây: + # - `oscillation_timeout` gốc: quẩn trong bán kính `oscillation_distance` quá lâu (đang TẮT, + # `oscillation_timeout: -1`); + # - kStall của EnvMonitor (`stall/action: recover`): "planner ĐÒI ĐI mà robot KHÔNG DỊCH CHUYỂN + # THẬT". Ba cổng đo bằng vị trí đo được, không bám plan: dịch chuyển đầu-cuối < `disp_min` + # trong `disp_window_s` dù lệnh tích luỹ đủ; đứng yên suốt `idle_window_s`; hoặc bị giam trong + # vùng bán kính < `confine_radius` suốt `confine_window_s`. Nổ khi robot còn trên đất sạch + # (edt 0.3–0.9 m, sim 5–6/9), trễ 15–16 s sau khi bắt đầu luẩn quẩn; né tự do không nổ. + # detour_path đứng đầu vì lúc nổ SBPL còn chỗ sạch để bắt đầu. + # ► Chỉnh: đây là trigger GỐC nên cạn route là ABORT — nổ oan là MẤT CHẶNG. Thêm `wait, clear` + # (`[detour_path, wait, detour_path, clear]`) để vật cản động kịp đi qua và costmap kịp dọn + # trước lượt lập đường sau; đổi lại chậm báo lỗi lên fleet. + oscillation: [detour_path] + + # --- Nhóm B: DỰ BÁO của EnvMonitor (kUnreachable, kContact) — cạn route là KHOÁ, robot đi tiếp ----- + + # kUnreachable (`unreachable/action: recover`): điểm thoát T = pose plan ở `exit_ahead` (2 m) dọc + # plan kể từ index đang bám, đã lùi `target_backoff` và dịch ngang `target_snap` sang ô free gần + # nhất, mà vẫn KHÔNG liên thông với robot trong cửa sổ costmap suốt `static_on` (1.5 s). Nghĩa là + # tuyến trước mặt tắc thật chứ không phải PRIEST đang né. Nổ khi thân còn cách vật ít nhất + # `clean_start_margin` (0.2 m) nên lập lại đường là đủ, không cần lùi. + # ► Chỉnh: ngưỡng và cổng nằm ở `env_monitor_params.yaml` mục `unreachable`; ở đây chỉ đổi behavior. path_blocked: [detour_path] + + # off_path: KHÔNG CÒN NGUỒN từ 6/9/2026 — phép đo lệch plan của PathMonitor đã xoá, EnvMonitor + # không đo cross-track vì lệch plan là việc local planner né, không phải lỗi. Route giữ cho đủ sáu + # trigger của StateMachine; sẽ không nổ cho tới khi có verdict mới cấp cờ này. off_path: [detour_path] - # 2026-09-04: Phép đo va chạm (thân sắp chạm trong `collision_stop_distance` trên cung lệnh) có - # trigger RIÊNG, không dùng chung `path_blocked` nữa. Phép đo tuyến-bị-chắn nổ ở 3 m nên lập lại - # đường là đủ; phép đo va chạm nổ khi ĐÃ SÁT vật, replan từ đúng pose đó thường trả lại cùng path - # hoặc không ra nghiệm (start trong vành 253) — muốn thoát phải ĐỔI POSE trước. Ngân sách và khoá - # (mute) riêng: cạn route này không làm `path_blocked` mất lượt. - # RỖNG = guard va chạm KHÔNG được vũ trang (boot log: `collision ... route=collision 0`). - # ► Chỉnh: `[back_up, detour_path]` khi chấp nhận lùi trước rồi mới lập lại đường. + + # kContact (`contact/action: recover`): QUỸ ĐẠO THẬT của local planner quét vào ô LETHAL. EnvMonitor + # đã tự bao tốc độ và phanh trước (`apply_command: true`, `brake_decel`, `envelope_margin`); cờ chỉ + # giơ khi tiếp xúc trong `clean_start_margin` (0.2 m) còn đó quá `trigger_static_time` (1 s). Nổ khi + # ĐÃ SÁT vật: replan từ đúng pose đó thường trả lại cùng path hoặc không ra nghiệm (start nằm trong + # vành 253), nên ngân sách và khoá riêng với `path_blocked`. Detour do cờ này mà robot không dịch nổi + # `standdown_min_travel` thì EnvMonitor tự đứng ra (stand-down) thay vì nổ lại. Cạn route thì giữ + # phanh + báo kNoValidCommand để leo thang qua `controlling_failed` (quy tắc A, 5/9). + # RỖNG = cờ collision không được vũ trang (boot log: `collision ... route=collision 0`). Phanh vẫn + # chạy vì phanh thuộc `apply_command`, không thuộc route — và quy tắc A vẫn leo thang. + # ► Chỉnh: `[back_up, detour_path]` khi chấp nhận lùi trước rồi mới lập lại đường — đây là lối + # ra thật của ngõ cụt sát vật; giữ `[detour_path]` nếu chưa muốn robot tự lùi. collision: [detour_path] + # =============================================================================================== + # 3. THAM SỐ TỪNG BEHAVIOR — xếp từ RẺ/AN TOÀN tới ĐẮT/RỦI RO + # =============================================================================================== + # --- wait: đứng yên, không phát vận tốc --------------------------------------------------------- wait: # [s] Thời gian đứng yên. @@ -93,8 +165,7 @@ recovery: # --- clear: xoá vật cản đã tích trong costmap --------------------------------------------------- # - # Đường thoát đúng khi bẫy là VẬT CẢN MA (costmap giữ lại thứ không còn ở đó). Rẻ nhất trong bộ, - # nên thường đặt đầu route. + # Đường thoát đúng khi bẫy là VẬT CẢN MA (costmap giữ lại thứ không còn ở đó). clear: # [m] Cạnh vùng vuông quanh robot sẽ bị xoá. # ► Chỉnh: TĂNG nếu ma nằm xa hơn (nhưng xoá rộng = mất cả vật cản THẬT vừa quan sát được, robot @@ -105,7 +176,7 @@ recovery: invert_area_to_clear: false # local | global | both — costmap nào bị xoá. # ► Chỉnh: `local` nếu chỉ muốn làm mới dữ liệu sensor mà không đụng bản đồ tích luỹ. - affected_maps: both + affected_maps: local # Phải khớp `plugins:` của costmap; sai tên -> log kèm tên layer thật. # ► Chỉnh: thêm tên layer nếu costmap có nhiều layer vật cản (vd `[obstacles, voxel_layer]`). # Đây KHÔNG phải số tinh chỉnh — sai tên là behavior không xoá gì cả. @@ -117,7 +188,6 @@ recovery: # ► Chỉnh: false = quay theo `goal.angle` do caller đặt, và nếu caller không đặt thì dùng # `target_angle` bên dưới. Giữ true cho mục đích "nhìn lại xung quanh". full_rotation: true - # [rad] Góc quay mặc định khi `full_rotation: false` VÀ caller không truyền `goal.angle`. # Giá trị hiện tại = 2*pi (tức bằng full_rotation), nên khi `full_rotation: true` nó nằm im. # ► Chỉnh: viết SỐ CỤ THỂ, đừng viết biểu thức kiểu `2 * 3.14159` — parser YAML không tính. @@ -140,13 +210,85 @@ recovery: # Đặt thấp hơn là behavior LUÔN kết thúc bằng timeout. timeout: 20.0 + # --- detour_path: LẬP LẠI CẢ ĐƯỜNG tới đích chặng ----------------------------------------------- + # + # Gói `sbpl_recovery`, họ kPath: nó KHÔNG lái robot, chỉ TRẢ VỀ một path; runtime áp path đó và + # local planner đang active bám theo. Từ 2026-09-02 nó KHÔNG còn vá một đoạn vòng vào tuyến cũ — + # nó lập lại toàn bộ đường từ pose hiện tại tới đích chặng, y như global planner nhưng chạy trong + # recovery. Lý do đổi: mô hình vá đoạn sinh ra đường khép kín làm robot kẹt 244 s (sim 28/8). + detour_path: + # Instance planner RIÊNG, không dùng chung SBPLLatticePlanner của global: detour gọi makePlan + # ĐỒNG BỘ trên control thread, nên `allocated_time` của instance này là trần treo control loop + # mỗi tick. Xem khối SBPLDetourPlanner ở mục 5. + # + # ► Chỉnh: `planner_name` là NAMESPACE PARAM (khối mục 5), `planner_symbol` là ALIAS Boost.DLL + # CÓ THẬT trong .so. Đây không phải số tinh chỉnh — đổi sai là runtime không nạp được plugin. + planner_name: SBPLDetourPlanner + planner_symbol: SBPLLatticePlanner # libsbpl_lattice_planner chỉ export đúng một symbol này. + # Khác bộ local planner, nơi mỗi biến thể là một class riêng + # nên tên instance trùng alias. + + # local | global | combined — lưới mà SBPL lập đường trên đó. + # "combined" (2026-08-05, vòng 3 — LƯỚI GỘP, xem DETOUR_MERGED_GRID_PLAN.md): snapshot global + # làm nền (tường/kệ tĩnh toàn bản đồ) + đè cửa sổ local lên (vật cản sensor tươi), SBPL lập + # đường TRÊN BẢN CHỤP GỘP — không giữ mutex costmap nào trong lúc search, map update không bị + # bỏ đói dù attempt thua. Một bên báo chắn là chắn; local FREE không xoá tường global. + # Cần planner export capability "ExternalGrid" (sbpl_lattice_planner có sẵn). + # + # ► Chỉnh: giữ `combined`. `local` = chỉ cửa sổ lăn, cho hệ không có global costmap — đích chặng + # kẹt ngoài cửa sổ. `global` = chỉ lưới tĩnh: ĐÃ ĐO và LOẠI trên sim, global không nạp sensor + # nên đường nào SBPL cũng vẽ xuyên đúng chỗ vật cản tươi (6/6 attempt hỏng). + # (Khoá cũ `use_global_costmap` vẫn được đọc để tương thích, nhưng `costmap_source` khai thì + # THẮNG nó — đừng khai cả hai.) + costmap_source: combined + + # Số lượt lập đường tối đa trong MỘT lần chạy behavior; mỗi control cycle chạy ĐÚNG MỘT lượt. + # ► Chỉnh: TĂNG = kiên nhẫn hơn nhưng mỗi lượt hỏng tốn thêm `allocated_time` giây treo control + # thread. GIẢM = từ bỏ nhanh, nhường cho behavior kế tiếp của route. Lưu ý lập đường từ pose + # nằm trong vành 253 thì SBPL trả "Solution not found" sau ~50 ms (không có successor nào), + # nên ba lượt cũng chỉ tốn 0.2 s — số này không cứu được ca đó. + attempts_per_run: 3 + + # Tuyến để đo độ lệch (2026-08-05e). "reference" = tuyến GỐC của chặng, tức plan do planner sinh + # và recovery không thay được. "current" = plan đang bám (hành vi cũ) — sim đo được tuyến bị ăn + # mòn dần qua từng lượt và robot không bao giờ về tuyến. + # ► Chỉnh: giữ `reference`. Chỉ đổi sang `current` khi runtime không cấp được tuyến tham chiếu + # (khi đó behavior tự quay về `current` kèm cảnh báo, không cần sửa gì). + rejoin_on: reference + + # [m] Hành lang lệch tuyến cho phép quanh tuyến `rejoin_on`. 0 = KHÔNG giới hạn. + # ► Chỉnh: giữ 0 cho tới khi biết dung sai thật của fleet master — đặt số mò còn tệ hơn tắt. + # Khi bật, đặt bằng chiều rộng hành lang mà fleet cho phép robot rời tuyến (thường 1–2 m). + # Đường vượt hành lang sẽ bị TỪ CHỐI và tính là một lượt thử hỏng. + max_deviation: 0.0 + + # true = giữ mutex costmap trong lúc đọc dữ liệu lập đường. + # ► Chỉnh: giữ true. false chỉ dành cho host tự bảo đảm costmap không bị ghi trong lúc đó — + # đọc lưới đang được map update ghi dở là lập đường trên dữ liệu rách. + lock_costmap: true + + # [s] Trần cho cả lượt recovery này (base cưỡng chế, khác `allocated_time` của một lượt SBPL). + # ► Chỉnh: phải > attempts_per_run * allocated_time (3 x 1.0 = 3.0 s) cộng dư địa, nếu không + # behavior bị cắt giữa chừng trước khi thử hết lượt. + timeout: 10.0 + + # Khoá `costmap_frame_override` (mặc định rỗng = lấy frame của chính costmap) chỉ cần khai khi + # lưới gộp và local costmap khác frame — hiếm; để trống thì behavior tự chọn đúng. + # + # 2026-09-04: BỐN khoá `planning_distance` / `sample_step` / `rejoin_clearance` / + # `max_rejoin_distance` đã bị GỠ khỏi file này. Chúng chỉ phục vụ việc quét chọn ĐIỂM NỐI của + # mô hình detour cũ; từ 2/9 behavior không nối vào tuyến cũ nữa nên plugin KHÔNG đọc chúng. + # Để lại thì vô hại nhưng có người sẽ chỉnh rồi chờ một hiệu ứng không bao giờ tới. + # --- back_up: lùi thẳng ------------------------------------------------------------------------- # - # Hướng lùi KHÔNG có sensor -> rủi ro cao nhất trong bộ, thường xếp cuối route. + # Hướng lùi KHÔNG có sensor (chỉ kiểm được costmap đã tích) -> rủi ro cao nhất trong bộ. Hiện + # KHÔNG nằm trong route nào; đưa vào `collision` hoặc `controlling_failed` là quyết định vận hành. back_up: # [m] Quãng lùi mặc định khi caller không chỉ định. - # ► Chỉnh: TĂNG (0.3–0.6) nếu robot cần lùi hẳn ra khỏi hốc/khe kệ mới xoay được; GIẢM nếu phía - # sau thường có người/vật. Nhớ phía sau là vùng mù. + # ► Chỉnh: TĂNG (0.3–0.6) nếu robot cần lùi hẳn ra khỏi hốc/khe kệ mới xoay được — 0.1 m chỉ đủ + # thoát dải đệm 5 cm của guard, KHÔNG đủ thoát vành 253 (nửa vành 0.48 m). GIẢM nếu phía sau + # thường có người/vật. Nhớ phía sau là vùng mù. backup_distance: 0.1 # [m] Trần cứng, chặn cả `goal.distance` do caller truyền lẫn param ở trên. # ► Chỉnh: đây là chốt an toàn, đặt bằng quãng lùi mù xa nhất còn chấp nhận được ở hiện trường. @@ -161,65 +303,12 @@ recovery: # ► Chỉnh: phải > backup_distance_max / linear_speed (1.0/0.1 = 10 s) cộng dư địa ramp. timeout: 15.0 - # --- detour_path: lập đường vòng quanh vật cản rồi NỐI LẠI tuyến -------------------------------- - # - # Gói `sbpl_recovery`, họ kPath: nó KHÔNG lái robot, chỉ TRẢ VỀ một path; runtime áp path đó và - # local planner đang active bám theo. Đường vòng được bám ngay, không replan (contract 08-04b). - detour_path: - # Instance planner RIÊNG, không dùng chung SBPLLatticePlanner của backup: detour gọi makePlan - # ĐỒNG BỘ trên control thread, nên `allocated_time` của instance này là trần treo control loop - # mỗi tick. Xem khối SBPLDetourPlanner ở cuối file. - # - # ► Chỉnh: `planner_name` là NAMESPACE PARAM (khối bên dưới), `planner_symbol` là ALIAS Boost.DLL - # CÓ THẬT trong .so. Đây không phải số tinh chỉnh — đổi sai là runtime không nạp được plugin. - planner_name: SBPLDetourPlanner - planner_symbol: SBPLLatticePlanner # libsbpl_lattice_planner chỉ export đúng một symbol này. - # Khác bộ local planner, nơi mỗi biến thể là một class riêng - # nên tên instance trùng alias. - - # "combined" (2026-08-05, vòng 3 — LƯỚI GỘP, xem DETOUR_MERGED_GRID_PLAN.md): snapshot global - # làm nền (tường/kệ tĩnh toàn bản đồ) + đè cửa sổ local lên (vật cản sensor tươi), SBPL lập - # đường TRÊN BẢN CHỤP GỘP — không giữ mutex costmap nào trong lúc search, map update không bị - # bỏ đói dù attempt thua. Một bên báo chắn là chắn; local FREE không xoá tường global. - # Cần planner export capability "ExternalGrid" (sbpl_lattice_planner có sẵn). - # - # ► Chỉnh: giữ `combined`. `local` = chỉ cửa sổ lăn, cho hệ không có global costmap — điểm nối - # kẹt trong cửa sổ. `global` = chỉ lưới tĩnh: ĐÃ ĐO và LOẠI trên sim, global không nạp sensor - # nên goal nào SBPL cũng vẽ xuyên đúng chỗ vật cản tươi (6/6 attempt hỏng). - costmap_source: combined - - # 2026-09-04: BỐN khoá `planning_distance` / `sample_step` / `rejoin_clearance` / - # `max_rejoin_distance` đã bị GỠ. Chúng chỉ phục vụ việc quét chọn ĐIỂM NỐI của mô hình detour - # cũ; từ 2/9 behavior lập lại CẢ ĐƯỜNG tới đích chặng nên plugin KHÔNG đọc chúng nữa. - - attempts_per_run: 3 - - # true = giữ mutex costmap trong lúc đọc dữ liệu lập đường (2026-09-04: khai tường minh, giá trị - # bằng đúng mặc định C++ nên hành vi không đổi). - # ► Chỉnh: giữ true. false chỉ dành cho host tự bảo đảm costmap không bị ghi trong lúc đó. - lock_costmap: true - - # Tuyến để NỐI LẠI (2026-08-05e). "reference" = tuyến GỐC của chặng, tức plan do planner sinh và - # recovery không thay được: đường vòng luôn quay về tuyến order, và `max_deviation` đo đúng hành - # lang fleet đã duyệt. "current" = plan đang bám (hành vi cũ) — sim đo được tuyến bị ăn mòn dần - # qua từng lượt detour (rejoin 106/305 -> 130/289 -> 132/273) và robot không bao giờ về tuyến. - # ► Chỉnh: giữ `reference`. Chỉ đổi sang `current` khi runtime không cấp được tuyến tham chiếu - # (khi đó behavior tự quay về `current` kèm cảnh báo, không cần sửa gì). - rejoin_on: reference - - # [m] Hành lang lệch tuyến cho phép quanh tuyến gốc của order. 0 = KHÔNG giới hạn. - # ► Chỉnh: giữ 0 cho tới khi biết dung sai thật của fleet master — đặt số mò còn tệ hơn tắt. - # Khi bật, đặt bằng chiều rộng hành lang mà fleet cho phép robot rời tuyến (thường 1–2 m). - # Đường vòng vượt hành lang sẽ bị TỪ CHỐI và thử ứng viên kế tiếp. - max_deviation: 0.0 - - # [s] Trần cho cả lượt recovery này (base cưỡng chế, khác `allocated_time` của một lượt SBPL). - # ► Chỉnh: phải > attempts_per_run * allocated_time (3 x 0.4 = 1.2 s) cộng dư địa, nếu không - # behavior bị cắt giữa chừng trước khi thử hết ứng viên. - timeout: 10.0 - -# Bảng symbol -> thư viện cho Boost.DLL. KHÔNG phải tham số tinh chỉnh — thiếu khoá `library_path` -# là nguyên nhân phổ biến nhất của lỗi "plugin build xong nhưng runtime báo không tìm thấy". +# ================================================================================================= +# 4. Bảng symbol -> thư viện cho Boost.DLL +# +# KHÔNG phải tham số tinh chỉnh — thiếu khoá `library_path` là nguyên nhân phổ biến nhất của lỗi +# "plugin build xong nhưng runtime báo không tìm thấy". +# ================================================================================================= WaitRecovery: library_path: librecovery_core_wait_recovery @@ -236,16 +325,16 @@ DetourPathRecovery: library_path: libsbpl_recovery # ================================================================================================= -# Instance SBPL RIÊNG cho detour — cùng .so với SBPLLatticePlanner, khác tuning. +# 5. Instance SBPL RIÊNG cho detour — cùng .so với SBPLLatticePlanner, khác tuning. # # Vì sao không dùng chung: `DetourPathRecovery::onUpdate` gọi makePlan ĐỒNG BỘ trên control thread, # nên `allocated_time` ở đây là trần thời gian control loop bị treo mỗi tick — `cancel`/`pause` từ -# host không được xử lý trong khoảng đó. Bản backup để 10.0 s là hợp lý cho vai trò của nó, nhưng +# host không được xử lý trong khoảng đó. Bản global để 10.0 s là hợp lý cho vai trò của nó, nhưng # treo loop 10 s thì không. # ================================================================================================= SBPLDetourPlanner: # KHÔNG có `library_path` ở đây: `SBPLDetourPlanner` không phải symbol, nó chỉ là namespace param. - # Việc nạp .so đi theo `planner_symbol: SBPLLatticePlanner` ở trên. + # Việc nạp .so đi theo `planner_symbol: SBPLLatticePlanner` ở mục 3. # Kiểu môi trường và thuật toán. XYThetaLattice là loại DUY NHẤT port này hỗ trợ. # ► Chỉnh: `planner_type` có ARAPlanner (anytime, dùng epsilon) và ADPlanner (anytime + dynamic, @@ -256,16 +345,29 @@ SBPLDetourPlanner: # [s] TRẦN CỨNG cho một lượt SBPL — cũng là trần treo control thread mỗi tick. # ► Chỉnh: TĂNG nếu log nhiều `Solution not found` mà thời điểm trả về đúng bằng giá trị này (tức # HẾT GIỜ). GIẢM nếu control loop bị giật khi detour chạy. Trả về sớm hơn nhiều giá trị này - # nghĩa là search CẠN STATE — tăng thêm cũng vô ích, vấn đề nằm ở goal không tới được. - allocated_time: 0.4 + # nghĩa là search CẠN STATE — tăng thêm cũng vô ích, vấn đề nằm ở đích không tới được. + # (cũ 0.4) Nới trần vì quãng đường giờ dài gấp ~4: behavior lập LẠI CẢ ĐƯỜNG tới đích chặng + # (2026-09-02), không còn vá một đoạn 2-4 m vào tuyến cũ. + # ► Robot đang đứng yên trong RECOVERING nên một cycle giãn ra không làm sai lệnh nào, nhưng TĂNG + # quá thì host không xử lý được cancel/pause trong khoảng đó. + allocated_time: 25.0 # Hệ số nới heuristic của ARA*: nghiệm đầu được phép đắt gấp `initial_epsilon` lần tối ưu, rồi # thuật toán siết dần trong thời gian còn lại. - # ► Chỉnh: đây là nút ĐÁNH ĐỔI TỐC ĐỘ/CHẤT LƯỢNG quan trọng nhất. - # - TĂNG (5–15) = ra nghiệm rất nhanh nhưng đường xấu: gấp khúc, xoay tại chỗ, vòng xoắn. - # - GIẢM (1.0–2.0) = đường đẹp nhưng chậm, dễ hết giờ ở quãng xa. - # Đường vòng xấu mà vẫn ra nghiệm ⇒ giảm số này TRƯỚC khi đụng vào .mprim. - initial_epsilon: 2.0 + # + # ĐẶT 1.0 (cũ 2.0) — 2026-09-02, và ngược trực giác nên ghi lại số đo. Trong cùng một log + # (/tmp/crowd2.log, cùng bản đồ, cùng binary), instance eps=1.0 chạy 38-187 ms cho quãng ~9 m và + # cho `arc/chord = 1.01` bảy trên bảy lượt; instance eps=2.0 chạy 298-668 ms cho quãng 2-4 m và + # cho 1.05-1.98. Tức eps cao vừa CHẬM HƠN vừa XẤU HƠN. + # - Chậm hơn vì eps=1.0 làm `ARA_FINAL_EPS` khớp ngay sau lượt đầu ⇒ ĐÚNG MỘT lượt A*, xong là + # trả; còn eps=2.0 chạy vòng anytime 2.0 -> 1.8 -> 1.6... cho tới khi cạn `allocated_time`, + # không bao giờ dừng sớm. + # - Xấu hơn vì trong bộ mprim này cua đắt ĐÚNG 2.000x đi thẳng, mà ngân sách suboptimality cũng + # đúng 2.0 ⇒ với tỉ lệ cua f bất kỳ, 1+f <= 2, tức thay 100% đoạn thẳng bằng cua vẫn "hợp lệ". + # A* không có lý do nào để chọn đường thẳng. + # ► Chỉnh: TĂNG chỉ khi đo được là hết giờ ở quãng xa (log dòng `[sbpl] eps=...`), và biết rằng + # mỗi nấc tăng là một nấc đường xấu đi. + initial_epsilon: 1.0 # Số ô costmap thay đổi tối đa còn cho phép lập plan tăng dần; vượt ngưỡng thì lập lại từ đầu. # ► Chỉnh: hiếm khi cần. GIẢM nếu nghi plan tăng dần đang dùng dữ liệu cũ. @@ -276,7 +378,7 @@ SBPLDetourPlanner: forward_search: true # Bỏ ràng buộc heading tại điểm xuất phát: SBPL được phép giả định robot đã xoay sẵn theo hướng - # tới goal, phần xoay để local planner lo. + # tới đích, phần xoay để local planner lo. # ► Chỉnh: `true` làm mỗi lượt HỎNG chạy HAI lần search (log: "no solution with free start # heading, retrying with actual robot heading"), và lượt thành công có thể chạy BA lần (thêm # một lượt "realign"). Đặt `false` cho detour để tiết kiệm — detour chạy khi robot ĐANG BÁM plan @@ -294,7 +396,19 @@ SBPLDetourPlanner: # File motion primitive: tập cử động cơ sở (tiến, lùi, cung rẽ, xoay tại chỗ) kèm hệ số chi phí. # ► Chỉnh: `resolution_m` trong file PHẢI khớp resolution costmap (0.05 m), nếu không SBPL từ chối - # nạp. Hình dạng đường vòng (gấp khúc / xoắn / nhiều đoạn xoay tại chỗ) do các + # nạp. Hình dạng đường (gấp khúc / xoắn / nhiều đoạn xoay tại chỗ) do các # `additionalactioncostmult` trong file này quyết định — sinh lại bằng `Test/mprim_gen`. Nên # dùng file RIÊNG cho detour, đừng đè file mà global planner đang dùng chung. - primitive_filename: /home/duongtd/T800_ws/src/AMR_T800/Test/sbpl_lattice_planner/matlab/mprim/unicycle_highcost_5cm.mprim + # Bộ sinh bởi `Test/mprim_gen` (configs/differential.py), thay `unicycle_highcost_5cm.mprim` + # ngày 2/9/2026. Ba khác biệt, tất cả đo được: + # - `turninplacecostmult` 20 -> 3: bộ cũ định giá xoay tại chỗ 22.5 độ bằng 3.93 m chạy thẳng, + # trong khi robot làm xong trong 0.25 s. Hệ quả: quay đầu 180 độ bằng pivot tốn 104 960 còn + # vẽ nửa vòng tròn chỉ tốn 21 696, nên planner LUÔN vẽ vòng — nguồn của đường khép kín làm + # robot kẹt 244 s trong sim 28/8. Bộ mới: pivot 15 744 < cung 22 208, pivot thắng. + # - Bán kính cung 1.04 -> 1.06 m và ĐỀU. Bộ cũ có ba đoạn đầu thẳng rồi gãy xuống R=0.66 m + # (điểm cuối (8,1,1) không nằm trên đường tròn) — đó là lý do log PRIEST báo + # "path bends to kappa=1.30 1/m (R=0.77 m) ... forces a crawl at 0.39 m/s". + # - Bỏ bước tiến 1 cell: 0.05 m tại góc 22.5 độ làm tròn thành (1,0) cell, tức hướng đi 0 độ + # trong khi heading 22.5 độ. `test_mprim_gen.py` chặn đúng ca này. + # ► Quay lại bộ cũ: đổi đúng dòng dưới về `unicycle_highcost_5cm.mprim`. File cũ vẫn nằm cạnh. + primitive_filename: /etc/pnkx_nav_core/config/runtime/mprim/diff_r106_tip3_5cm.mprim diff --git a/config/runtime/sbpl_global_params.yaml b/config/runtime/sbpl_global_params.yaml index d41cd95..65df56c 100644 --- a/config/runtime/sbpl_global_params.yaml +++ b/config/runtime/sbpl_global_params.yaml @@ -38,4 +38,4 @@ SBPLLatticePlanner: debug_grid_window: 0 nominalvel_mpersecs: 0.3 timetoturn45degsinplace_secs: 1.31 # = 0.6 rad/s - primitive_filename: /home/duongtd/T800_ws/src/AMR_T800/Test/sbpl_lattice_planner/matlab/mprim/unicycle_highcost_5cm.mprim \ No newline at end of file + primitive_filename: /etc/pnkx_nav_core/config/runtime/mprim/diff_r106_tip3_5cm.mprim \ No newline at end of file diff --git a/config/runtime/stanley_local_planner_params.yaml b/config/runtime/stanley_local_planner_params.yaml index c4ec372..28bc975 100644 --- a/config/runtime/stanley_local_planner_params.yaml +++ b/config/runtime/stanley_local_planner_params.yaml @@ -27,7 +27,7 @@ StanleyLocalPlanner: # Chỉnh: chỉ đặt số cứng khi TF không có hoặc sai; số sai # làm feedforward atan(L*kappa) sai theo -> lệch cong. front_axle_frame: "steer_link" - rear_axle_frame: "base_link" + rear_axle_frame: "base_footprint" # Hai giới hạn góc lái RIÊNG BIỆT. # Bám path không được dùng góc lái lớn: forward_vel_ tỉ lệ cos(delta) nên sụp về