Repository navigation
Expand file tree
/
Copy pathjustfile
More file actions
129 lines (93 loc) · 4.34 KB
/
Copy pathjustfile
File metadata and controls
129 lines (93 loc) · 4.34 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
default:
@just --list
# -- Environment -------------------------------------------------------------------------------------------------------
# Install dependencies and configure the dev environment
setup:
pixi run python3 scripts/setup_environment.py
# Regenerate pyrightconfig.json from packages in src/
generate-pyrightconfig:
pixi run python3 scripts/generate_pyrightconfig.py
# -- Build & Test ------------------------------------------------------------------------------------------------------
# Build the entire workspace
build *args:
pixi run colcon build {{args}}
# Run all tests
test *args:
pixi run colcon test {{args}}
pixi run colcon test-result --verbose
# Build a single package and its dependencies
build-package package *args:
pixi run colcon build --packages-up-to {{package}} {{args}}
# Run tests for a single package
test-package package *args:
pixi run colcon test --packages-select {{package}} {{args}}
pixi run colcon test-result --verbose
# Delete build, install, and log directories
clean:
rm -rf build install log
# -- Code Quality ------------------------------------------------------------------------------------------------------
# Auto-format all source files
format *args:
pixi run python3 scripts/format.py {{args}}
# Run all linters
lint *args:
pixi run python3 scripts/lint.py {{args}}
# -- Packages ----------------------------------------------------------------------------------------------------------
# Create a new ROS 2 package (type: python|cpp)
create-package dir package type='python':
pixi run python3 scripts/create_package.py {{dir}} {{package}} --type {{type}}
just generate-pyrightconfig
# -- Devices -----------------------------------------------------------------------------------------------------------
# Create a udev alias for a device
alias device name:
pixi run python3 scripts/create_device_alias.py {{device}} {{name}}
# Remove a udev device alias
unalias name:
pixi run python3 scripts/remove_device_alias.py {{name}}
# -- Waypoints ---------------------------------------------------------------------------------------------------------
# Convert all packed-DMS waypoints (waypoints/dms/) to decimal degrees (waypoints/decimal/)
convert-waypoints:
pixi run python3 scripts/convert_waypoint.py
# -- ROS 2 -------------------------------------------------------------------------------------------------------------
# Open RViz with the shared stack configuration
rviz:
pixi run rviz2 -d src/bringup/config/visualization/maverick.rviz
# Capture a single message from a topic to a file
extract topic output:
pixi run python3 scripts/extract_message.py {{topic}} {{output}}
# Publish a message to a topic from a file
publish topic input rate='once':
pixi run python3 scripts/publish_message.py {{topic}} {{input}} {{rate}}
# Start a tmux session containing rviz and split panes for bringup
tmux:
pixi run tmux -f tmux.conf attach
# -- ODrive ------------------------------------------------------------------------------------------------------------
# Calibrate the ODrive motor controllers
calibrate-odrive:
pixi run python3 src/hardware/odrive_driver/scripts/calibrate_odrive.py
# Clear ODrive motor controller errors
clear-odrive-errors:
pixi run python3 src/hardware/odrive_driver/scripts/clear_odrive_errors.py
# Plot ODrive Iq and velocity (requires odrive_driver running with debug: true)
plot-odrive *args:
pixi run python3 src/hardware/odrive_driver/scripts/plot_motor_signals.py {{args}}
# -- VectorNav ---------------------------------------------------------------------------------------------------------
# Monitor IMU orientation as Euler angles
euler-monitor *args:
pixi run python3 src/hardware/vectornav_driver/scripts/euler_monitor.py {{args}}
# Monitor VectorNav INS/GNSS status
vectornav-monitor:
pixi run python3 src/hardware/vectornav_driver/scripts/vectornav_monitor.py
# -- RANSAC --
# Inspect an HDF5 recording
ransac-inspect:
pixi run python3 src/cv/ransac/scripts/inspect_dual.py
# Show a live preview of RANSAC on one camera
ransac-live:
pixi run python3 src/cv/ransac/scripts/live_single.py
# Create an HDF5 recording
ransac-record:
pixi run python3 src/cv/ransac/scripts/record_multi.py
# Open the camera merge tuning software
ransac-tune:
pixi run python3 src/cv/ransac/scripts/tuner.py