Auto 835 add laser retro support to rgl plugin #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
JIRA: https://dexory.atlassian.net/browse/AUTO-835
This is the API part of the code required to add the
laser_retro
field to the RGL plugin.Pre-requisites
Refer to the official build instructions to build using docker. What we are trying to build is a shared library object file
libRobotecGPULidar.so
that will be used in the plugin.OptiX
DOWNLOAD THE 7.2 VERSION OF OptiX, newer versions are not compatible
https://developer.nvidia.com/optix/downloads/7.2.0/linux64
A sign-up/login process is required for this. Once you have the
NVIDIA-OptiX-SDK-7.2.0-linux64-x86_64.sh
file you can run it to download the SDK and add the path to the env variable:export OptiX_INSTALL_DIR=<your-OptiX-path>
Build docker
First step is clone this repo and checkout the dev branch:
git clone git@github.com:botsandus/RobotecGPULidar.git -b AUTO-835-add-laser-retro-support-to-rgl-plugin
Then, build the latest docker file. The minimal version is out-dated.
docker build . -f DockerfileLatest --tag rgl:latest
Then, from inside the repo's root directory, start the container.
docker run --net=host --gpus all -v $(pwd):/code -v ${OptiX_INSTALL_DIR}:/optix -e OptiX_INSTALL_DIR=/optix -e NVIDIA_DRIVER_CAPABILITIES=all -it rgl:minimal /bin/bash
And before trying to compile the library. We need to install the PCL library manually with,
sudo apt install libpcl-dev
This requires some interactive input with timezones.
Compile the library.
We can now compile the library by using:
./setup.bash --cmake --make -j
This should create the
libRobotecGPULidar.so
in the build directory.Testing
In order to test the changes, we have to use the shared library with the Plugin. Please follow the instructions here