This is an example showing how to use the cliff sensor extension in order to let the robot autonomously charge istelf by following a black line that leads to the charging station.
Have a look at the cliff sensor video section to see the robot in action.
For information on how to build the project refer to the e-puck2 wiki.