Repository navigation
Expand file tree
/
Copy pathconfig.py
More file actions
74 lines (62 loc) · 1.82 KB
/
Copy pathconfig.py
File metadata and controls
74 lines (62 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
"""Configuration constants for the mobile manipulator planning system."""
# Simulation
SIMULATION_DT = 0.01
SIMULATION_SUB_STEPS = 20
# Controller
CONTROLLER_KP = 5.0
CONTROLLER_TIMEOUT = 60.0
LOOKAHEAD_DISTANCE = 0.2
FINAL_THRESHOLD = 0.05
STALL_VELOCITY_THRESHOLD = 0.01
STALL_ITERATIONS = 20
DEFAULT_VELOCITY_LIMIT = 5.0
DEFAULT_ACCEL_LIMIT = 10.0
ARM_MAX_VEL = 0.8
ARM_MAX_ACCEL = 2.0
# Planner
PLANNER_BACKEND = "custom" # "custom" for RRT*, "ompl" for OMPL
PLANNING_TIMEOUT = 30.0
COLLISION_MARGIN = 0.01
PATH_INTERPOLATION_STEPS = 2000
PLANNER_RANGE = 0.2
DEFAULT_JOINT_LIMIT = 6.28
MOBILE_BASE_BOUNDS = (-12.0, 12.0)
# RRT* specific
RRT_GOAL_BIAS = 0.05 # Probability of sampling goal
RRT_REWIRE_RADIUS = 0.5 # Radius for rewiring
RRT_GOAL_THRESHOLD = 0.1 # Distance to consider goal reached
# Warehouse
WAREHOUSE_ROWS = 20
WAREHOUSE_COLS = 15
GAP_PROBABILITY = 0.2
CELL_SIZE = 1.0
WALL_HEIGHT = 0.5
# Shelf/Wall actual footprint sizes for 2D collision checking
# These match the actual mesh dimensions after rotation
SHELF_FOOTPRINT_SIZE = 0.9 # Actual shelf is ~0.88m, use 0.9 for safety margin
WALL_FOOTPRINT_SIZE = 1.0 # Walls are box shaped
# Target/Gripper
OBJECT_HALF_SIZE = 0.05
GRIPPER_OFFSET = 0.02
ARM_REACH = 0.6
TARGET_OFFSET_X = 0.2
TARGET_OFFSET_Y = 0.3
TARGET_HEIGHT = 0.5
# Standoff
STANDOFF_DISTANCE = 1.0
# Visual
SHELF_COLOR = [0.6, 0.6, 0.6, 1]
GOAL_SHELF_COLOR = [0.0, 1.0, 0.0, 1]
WALL_COLOR = [1.0, 0.2, 0.2, 1]
TARGET_COLOR = [0, 0, 1, 1]
DEBUG_LINE_WIDTH = 4
# Robot
ROBOT_URDF = "mobilePanda_with_gripper.urdf"
SHELF_MESH = "kiva_pod/meshes/pod_lowres.stl"
# Inverse Kinematics
GRIPPER_EXTENT = 0.12
LOCK_RANGE = 1.0
# Benchmarking
BENCHMARK_OUTPUT_DIR = "benchmarks"
BENCHMARK_SAFETY_MARGIN = 0.1 # meters - threshold for safe distance
BENCHMARK_ROBOT_RADIUS = 0.25 # meters - robot collision radius