CUDA-based simulation code for
Particle robotics based on statistical mechanics of loosely coupled components
Shuguang Li, Richa Batra, David Brown, Hyun-Dong Chang, Nikhil Ranganathan, Chuck Hoberman, Daniela Rus & Hod Lipson
- Install build-essential package
sudo apt-get install build-essentials
- Install NVIDIA CUDA ToolKit
- Install GL/GLEW related libraries
sudo apt-get install g++ freeglut3-dev build-essential libx11-dev \
libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev libglew-dev
- Install OpenCV
sudo apt-get install libopencv-dev
- Compile the Code
make
- Install Visual Studio (with C/C++ development module)
- Install NVIDIA CUDA Toolkit
- Install OpenCV
- Install FreeGLUT
- Install GLEW
- Set the following Environment Variables (System Properties->Advanced->Environment Variables) to point to your installation locations for the above libraries
CUDA_PATH OpenCV_DIR GLEW_DIR FREEGLUT_DIR
- Add
to your User PATH Variable (System Properties->Advanced->Environment Variables)
%FREEGLUT_DIR%\bin\x64;%GLEW_DIR%\bin\Release\x64;
- Open ParticleBot.sln with Visual Studio and Build Solution