Skip to content

Installation

Stacy edited this page Jun 16, 2023 · 3 revisions

Installation on PC

ROS1 Noetic should be installed.

Windows users read first Instruction for Windows users and then continue

# Download this repository
git clone --recurse-submodules https://github.com/CatUnderTheLeaf/rosRoboCar.git

source /opt/ros/noetic/setup.bash
cd /path/to/robocar_ws

# Install dependencies
rosdep update
rosdep install --from-paths src --ignore-src --rosdistro noetic

# Building packages
# Add CATKIN_IGNORE to robot_only packages, e.g. raspicam_node
catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3

# Source this workspace
source devel/setup.bash

Installation on a car

  1. A DonkeyCar has RaspberryPi, so first make it work. If there are problems check resolve connectivity problems
  2. Install ROS1 Noetic from sources. In the catkin_make_isolated step add -j2 flag, so it will not stuck.
  3. Install libs for i2cpwm_board node
  4. Download this repository.
  5. Unfortunately dependencies can not be resolved, as there are no binary packages. So download in ~/ros_catkin_ws/src following repositories: image_transport, replace image_common, image_pipeline, replace vision_opencv.
  6. Install compressed_image_transport, image_transport_plugins, camera_calibration_parsers, camera_info_manager, image_geometry, image_proc with a command
./src/catkin/bin/catkin_make_isolated -j2 --install -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 --install-space /opt/ros/noetic --pkg YOUR_PACKAGE_NAME