Z4nna / nereo_rov_code

The code for the ROV Nereo made by PoliTOcean
MIT License
1 stars 1 forks source link

Nereo PoliTOcean

The code for the ROV Nereo made by PoliTOcean. The src folder is the src folder of the ros2 workspace. We are currently using ROS2 Humble. Inside the src folder there are two packages:

  1. nereo_pkg This package contains the code for the python nodes to be run on both the ROV and the control station, as well as the two launch files to run on the two devices.
  2. nereo_sensors_pkg This package contains the code for the C++ nodes, used to communicate with the I2C sensors.

    Setup instructions

    Manual installation

  3. In the ros2_ws folder, run:
    colcon build

    All the packages should now be built, you may want to include them in your .bashrc file:

    source install/setup.bash

    Unit test usage.

    Inside the folder unit_tests, you can find a couple of sub directories containing cmake projects, that perform a simple test printing on the stdout some debugging infos.

    Unit test setup instructions.

  4. Inside the desired unit test folder, say unit_tests/my_unit_test, run
    cmake .

    and then run

    make

    then you can run the executable, that will have the same name as the unit test folder:

    ./my_unit_test