Devcontainer Setup - ripl-lab/allan_variance_ros2 GitHub Wiki
How to use a devcontainer for development
- Install the Remote - Containers extension in VSCode
- Install Docker on local machine (https://docs.docker.com/desktop/setup/install/linux/ubuntu/)
- If you will be using the Realsense camera, install the librealsense libraries locally by following Step 1 in the Realsense with ROS2 instructions
- Open the allan_variance_ros2 repository in VSCode
- Reopen in Container: Use the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS) and select "Remote-Containers: Reopen in Container". This will build the container using the Dockerfile and open your project inside the container
- cd into the allan_variance_ros2 folder with
cd allan_variance_ros2 - Run
python3 src/allan_variance_computer.py --input_mcap mcaps/imu_data.mcap --output_dir allan_variance --imu_config_yaml config/realsense_d425i.yamlto run the allan variance computer - Run
python3 src/allan_variance_analysis.py --data allan_variance/allan_variance.csvto run the allan variance analysis
Once the repository is open in the container, you can develop as normal following the instructions to perform the conversion.