This is a ROS package that can detect stairs by subscribing a Depth images. It will publish a topic that contains the bouding box of the stairs on the image.
cd 'your_working_space'/src
git clone https://github.com/willdzeng/stair_detector_geo.git
cd ..
catkin_make
Change the coresponding topic name to your published depth images in the launch file.
<remap from="depth/image" to="/camera/depth/image_rect_color"/>
And then do:
roslaunch stair_detector_geo stiar_detector.launch
This package is dynamic reconfiguable. Just run:
rosrun rqt_reconfigure rqt_reconfigure