ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Assuming you have an IMU, look at the pitch angle:

  1. should be below a flat surface threshold, e.g. 5°
  2. wait until above threshold for ramp angle, e.g. 20° -> on ramp
  3. wait until below flat surface threshold, e.g. 5° -> off ramp

It's basically like a Schmitt-Trigger if you are familiar with that.