The main code we need to care about is stored in the /ball1
folder. Detailed explanation see notes.txt
.
- Download ode and put it somewhere (hopefully not your
/Downloads
folder) cd
into the ode folder, then run./configure --enable-double-precision
. Note the double precision here that takes me (Yanda) an hour to debug- edit
drawstuff/src/drawstuff.cpp
, change line #79 to#define LIGHTY (-0.4f)
make
thensudo make install
sudo cp -rp include/drawstuff /usr/local/include/
cd drawstuff/src/
sudo cp libdrawstuff.la .libs/libdrawstuff.a /usr/local/lib/
time_step
: the time step for the simulator to go forward. If it is too small, it will miss some collision. If it's too large, it will be too slowobstacle_file
: the path to the json file that contains the information about the whole world setup. This json file should be created by the box-2d optimizer.
git clone
this repo into your catkin workspace/src
foldercd
into catkin workspace, thencatkin_make
roslaunch marble_simulator_ode default_simulator.launch
- the
CMakeLists.txt
is a masterpiece