Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.47 KB

README.md

File metadata and controls

37 lines (26 loc) · 1.47 KB

door_adapter_switchbot

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.

switchbot_contact_sensor door_adapter_switchbot_action

Installation

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

Update config.yaml

For each door, create a corresponding config.yaml file containing important parameters for setting up the door adapter. See this file for template.

Run the door adapter

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