From c38ca4b8700f1dbd395bc1a1044ef5ea1187b704 Mon Sep 17 00:00:00 2001 From: Aryan Date: Sun, 3 Mar 2024 14:14:53 +0530 Subject: [PATCH 1/4] Installations instructions corrected --- _pages/install/install.md | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/_pages/install/install.md b/_pages/install/install.md index 47e2356b..b90321a6 100644 --- a/_pages/install/install.md +++ b/_pages/install/install.md @@ -88,27 +88,36 @@ echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc source ~/.bashrc ``` +#### Dependencies for building packages + +```bash +sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential +``` ### Creating a virtualenv -It is recommended to use virtual environment for Behavior Metrics. +It is recommended to use virtual environment for Behavior Metrics. Use **Python version->3.8** or **below.** ```bash # Create virtualenv -virtualenv -p python3 .behavior-metrics +virtualenv -p python=3.8 .behavior-metrics source .behavior-metrics/bin/activate -pip install empy +pip3 install empy sudo apt-get install python3-dev ``` +### Install Catkin_pkg +```bash +pip3 install catkin_pkg +``` ### Installing dependencies #### JdeRobot's CustomRobots - +- Clone this repository in your home directory. ```bash git clone -b noetic-devel https://github.com/JdeRobot/CustomRobots -cd CustomRobots/f1 && mkdir build && cd build +cd CustomRobots/CustomRobots/f1 && mkdir build && cd build /bin/bash -c "source /opt/ros/noetic/setup.bash; -cmake .. && make && make install;" +cmake .. && make && sudo make install;" echo "source /opt/jderobot/share/jderobot/gazebo/assets-setup.sh" >> ~/.bashrc ``` @@ -117,13 +126,15 @@ echo "source /opt/jderobot/share/jderobot/gazebo/assets-setup.sh" >> ~/.bashrc ```bash git clone https://github.com/strasdat/Sophus cd Sophus && mkdir build && cd build -cmake ../ && make && make install +cmake ../ && make && sudo make install ``` ### Installing Behavior Metrics This application depends on some third party libraries, most of them are included in the requirements file. To install them just type the following: +- Clone this repository in your home directory. + ```bash git clone -b noetic-devel https://github.com/JdeRobot/BehaviorMetrics cd BehaviorMetrics From df38fcd7d1551e2248691bbe05d96e41b2a6b854 Mon Sep 17 00:00:00 2001 From: Aryan Date: Fri, 8 Mar 2024 16:05:45 +0530 Subject: [PATCH 2/4] Manual instructions of CARLA added --- _pages/install/install.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/_pages/install/install.md b/_pages/install/install.md index b90321a6..e06c01c4 100644 --- a/_pages/install/install.md +++ b/_pages/install/install.md @@ -153,6 +153,36 @@ pyrcc5 -o behavior_metrics/ui/gui/resources/resources.py \ For installing CARLA and supporting this new simulator: 1. Install [CARLA 0.9.13](https://carla.readthedocs.io/en/0.9.13/start_quickstart/) + +For manual instructions of CARLA follow the below instructions:- + +i) Install Required System Dependency + +Before downloading CARLA, install the necessary system dependency: + +``` +sudo apt-get -y install libomp5 +``` +ii) Download the CARLA 0.9.15 Release + +Download the CARLA_0.9.15.tar.gz file (approximately 16GB) from the official release: + +``` +wget https://carla-releases.s3.us-east-005.backblazeb2.com/Linux/CARLA_0.9.15.tar.gz +``` +iii) Unpack CARLA to the Desired Directory + +Unpack the downloaded file to /opt/carla-simulator/: +``` +tar -xzvf CARLA_0.9.15.tar.gz -C /opt/carla-simulator/ +``` +iv) Install the CARLA Python Module + +Finally, install the CARLA Python module and necessary dependencies: +``` +python -m pip install carla==0.9.15 +python -m pip install -r /opt/carla-simulator/PythonAPI/examples/requirements.txt +``` 2. Install [CARLA ROS Bridge](https://carla.readthedocs.io/projects/ros-bridge/en/latest/ros_installation_ros1/) 3. Install this [fork](https://github.com/Qi-Zha0/carla-birdeye-view) of the [CARLA bird-eye-view](https://github.com/deepsense-ai/carla-birdeye-view) ``` From e03a69d2a18a39c8d6f8a6f3b17ce4ca337660e1 Mon Sep 17 00:00:00 2001 From: Aryan Date: Fri, 8 Mar 2024 16:18:37 +0530 Subject: [PATCH 3/4] CustomRobot instructions added --- _pages/install/install.md | 1 + 1 file changed, 1 insertion(+) diff --git a/_pages/install/install.md b/_pages/install/install.md index 011010c7..6d49696a 100644 --- a/_pages/install/install.md +++ b/_pages/install/install.md @@ -112,6 +112,7 @@ pip3 install catkin_pkg ### Installing dependencies #### JdeRobot's CustomRobots +The CustomRobots repository is only needed for launching Behavior Metrics with Gazebo. Since our main simulator is CARLA we don't need it for running behavior-metrics with CARLA based simulation. - Clone this repository in your home directory. ```bash git clone -b noetic-devel https://github.com/JdeRobot/CustomRobots From 367bc55ff3e057ddd79361183904a68f759b6f2a Mon Sep 17 00:00:00 2001 From: Aryan Date: Fri, 8 Mar 2024 16:21:07 +0530 Subject: [PATCH 4/4] Typo corrected --- _pages/install/install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pages/install/install.md b/_pages/install/install.md index 6d49696a..f5a56025 100644 --- a/_pages/install/install.md +++ b/_pages/install/install.md @@ -155,7 +155,7 @@ For installing CARLA and supporting this new simulator: 1. Install [CARLA 0.9.15](https://carla.readthedocs.io/en/0.9.15/start_quickstart/) . Currently, the official Carla server is down. Therefore, it is advisable to install Carla using the GitHub package method instead of the Debian package method. -For manual instructions of CARLA follow the below instructions:- +For manual Installation of CARLA follow the below instructions:- i) Install Required System Dependency