This repository contains the ROS-Arduini interface code required to implement the automated joystick control for wheelchair.
- To know the position of wheelchair, realsense depth camera is used to launch Rtab map SLAM and using
/rtab/odom
topic postion is obtained. - Based on position of the wheelchair, distance is calculated from the start point and current position of the wheelchair and
/cmd_vel
topic is published accordingly. - In arduino script, the subcriber subscribes to this cmd_vel topic and set the angle of the servo motor which is connected to joystick of the wheelchair.
- To launch the file which runs ros script and arduio serial node,
roslaunch wheelchair_pkg wheelchair.launch
- Note that, the arduino script need to be uploaded on Arduino.