-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathinit.sh
More file actions
39 lines (33 loc) · 1.34 KB
/
Copy pathinit.sh
File metadata and controls
39 lines (33 loc) · 1.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
# These are necessary for my home setup
export HOME=/home/ros
source /home/ros/.bashrc
# Linking the ROS2 workspace
ln -s /home/ros/rap/Gruppe2/ /home/ros/colcon_ws/src/
# Check and clone m-explore-ros2 if not present
EXPLORE_LITE_DIR="/home/ros/colcon_ws/src/m-explore-ros2"
if [ ! -d "$EXPLORE_LITE_DIR" ]; then
echo "Cloning m-explore-ros2..."
git clone https://github.com/robo-friends/m-explore-ros2.git "$EXPLORE_LITE_DIR"
else
echo "m-explore-ros2 directory already exists."
fi
# The map_merge package is not needed for the current setup
# and also causes issues with the current ros2 jazzy version
rm -rf /home/ros/colcon_ws/src/m-explore-ros2/map_merge/
# Build the workspace
cd /home/ros/colcon_ws
colcon build --symlink-install
source install/setup.bash
sudo apt update -y
rosdep install --from-paths src --ignore-src -r -y
cd -
echo "** ROS2 $ROS_DISTRO initialized with $RMW_IMPLEMENTATION**"
# Install Python packages
pip3 install jpl-rosa --break-system-packages
pip3 install langchain-ollama --upgrade --break-system-packages
pip3 install langchain-core --upgrade --break-system-packages
pip3 install pydantic --upgrade --break-system-packages
pip3 install anthropic --upgrade --break-system-packages
pip3 install langchain-anthropic --upgrade --break-system-packages
# gazebo models
export GZ_SIM_RESOURCE_PATH=/home/ros/rap/Gruppe2/world/models