@@ -46,6 +46,7 @@ if [[ -d $AMENT_WSDIR ]]; then
4646 prompt_yes_no
4747fi
4848
49+ export PATH=${PATH} :~ /.local/bin
4950. /etc/hello-robot/hello-robot.conf
5051export HELLO_FLEET_ID HELLO_FLEET_ID
5152export HELLO_FLEET_PATH=${HOME} /stretch_user
@@ -65,6 +66,7 @@ cd $AMENT_WSDIR/
6566rosdep install --rosdistro=humble -iy --skip-keys=" librealsense2 realsense2_camera" --from-paths src & >> $REDIRECT_LOGFILE
6667sudo apt remove -y ros-humble-librealsense2 ros-humble-realsense2-camera ros-humble-realsense2-camera-msgs & >> $REDIRECT_LOGFILE
6768pip3 cache purge & >> $REDIRECT_LOGFILE
69+
6870echo " Install web interface dependencies..."
6971cd $AMENT_WSDIR /src/stretch_web_teleop
7072pip3 install -r requirements.txt & >> $REDIRECT_LOGFILE
@@ -86,8 +88,17 @@ touch .env
8688echo certfile=${HELLO_FLEET_ID} +6.pem >> .env
8789echo keyfile=${HELLO_FLEET_ID} +6-key.pem >> .env
8890cd $AMENT_WSDIR /
91+
92+ echo " Install FUNMAP dependencies..."
93+ cd $AMENT_WSDIR /src/stretch_ros2/stretch_funmap
94+ uv venv --system-site-packages --allow-existing .venv & >> $REDIRECT_LOGFILE
95+ uv sync --frozen & >> $REDIRECT_LOGFILE
96+ echo " Compile cython modules..."
97+ uv run cythonize stretch_funmap/cython_min_cost_path.pyx -3 -i & >> $REDIRECT_LOGFILE
98+ cd $AMENT_WSDIR /
99+
89100echo " Compile the workspace (this might take a while)..."
90- colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release & >> $REDIRECT_LOGFILE
101+ colcon build --symlink-install & >> $REDIRECT_LOGFILE
91102echo " Source setup.bash file..."
92103source $AMENT_WSDIR /install/setup.bash
93104echo " Updating port privledges..."
@@ -102,4 +113,8 @@ echo "Setup uncalibrated robot URDF..."
102113ros2 run stretch_calibration update_uncalibrated_urdf >> $REDIRECT_LOGFILE
103114echo " Setup calibrated robot URDF..."
104115ros2 run stretch_calibration update_with_most_recent_calibration >> $REDIRECT_LOGFILE
105- colcon build & >> $REDIRECT_LOGFILE
116+ colcon build --symlink-install & >> $REDIRECT_LOGFILE
117+
118+ echo " Amend FUNMAP executables to use venv..."
119+ REx_amend_venv_execs.py stretch_funmap & >> $REDIRECT_LOGFILE
120+
0 commit comments