Stand-alone python wrap of signed distance field and collision cost implementations for applications in robotics.
Eigen 3.4.0, Pybind11 ,numpy, scipy, plotly.
git clone https://github.com/hzyu17/sdf_robot.git
cd sdf_robot
mkdir build && cd build
cmake ..
make
cd tests
pytest
For collision checking on a multi-body robot, a vector of collision checking points in different locations are considered in the workspace.
Each collision checking point is forward transformed to the workspace. A signed distance to the obstacles is first computed elementwise, and then a hinge loss is applied to the signed distance. Finally, a norm weighted by
We define the forward chain as
The gradient
Below is an example of a planar quadrotor with multiple collision-checking points in a planar sdf with one obstacle.