-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathros2_robot_bashrc.bash
More file actions
36 lines (27 loc) · 1.04 KB
/
ros2_robot_bashrc.bash
File metadata and controls
36 lines (27 loc) · 1.04 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
#!/bin/bash
echo "[running ~/rosutils/ros2_robot_bashrc.bash]"
HISTSIZE=1000
HISTFILESIZE=2000
source /opt/ros/${ROS_DISTRO:-kilted}/setup.bash
source ~/rosutils/ros2_common_bashrc.bash
export LINOROBOT2_BASE=2wd
export LINOROBOT2_LASER_SENSOR=ld19
export LINOROBOT2_DEPTH_SENSOR=
export ROS2_WS=ros2_ws
source ~/$ROS2_WS/install/setup.bash
eval "$(mcfly init bash)"
export MCFLY_LIGHT=FALSE
PATH="$PATH:$HOME/.platformio/penv/bin:/usr/local/bin"
# The dopller secrets command creates a list of set commands, which create shell local
# variables. By adding -a, we export those variables to the environment, so they are available to ROS2 nodes.
# Another approach would be to write the secrets to a file, and then source that file which might
# be a a little faster. If needed we can do this in the future.
if doppler configure get token --plain &>/dev/null 2>&1; then
set -a
eval $(doppler secrets download --no-file --format env)
set +a
else
echo "[doppler] no token configured — skipping secrets"
fi
export DOME_MODE=robot
export DOME_CAMERA=oak