Open-RMF door adapter implementation for manual doors with SwitchBot Contact Sensor attached. Door status will be notified by this adapter but the doors should be opened manually.
cd ~/colcon_ws/src
git clone git@github.com:sbgisen/door_adapter_switchbot.git
pip install -r door_adapter_switchbot/door_adapter_switchbot/requirements.txt
cd ~/colcon_ws && colcon build
For each door, create a corresponding config.yaml
file containing important parameters for setting up the door adapter. See this file for template.
One adapter should be run for each door used inside the building managed by the Open-RMF system.
Run the command below while passing the paths to the configuration file to operate on. See here to get the switchbot token and secret values.
export SWITCHBOT_TOKEN=<token>
export SWITCHBOT_SECRET=<secret>
ros2 run door_adapter door_adapter -c CONFIG_FILE