# Bot Service Setup and Usage
## 1. Navigate to Catkin Workspace
Make sure you are in your Catkin workspace directory:
```bash
cd ~/catkin_ws/
```
## 2. Source the ROS Setup Script
Source the `setup.bash` file to configure the environment:
```bash
source devel/setup.bash
```
## 3. Launch the Bot Service
Start the bot service using the launch file:
```bash
roslaunch bot_service bot_service.launch
```
## 4. List Available ROS Services
Check available services to interact with the bot:
```bash
rosservice list
```
You should see services like:
```
/bot/reboot_service
/bot/shutdown_service
```
## 5. Use the Services
To interact with the bot, you can call the services:
Reboot the bot:
```bash
rosservice call /bot/reboot_service
```
Shut down the bot:
```bash
rosservice call /bot/shutdown_service
```
You can configure sudo to never ask for your password.
Open a Terminal window and type:
```bash
sudo visudo
```
In the bottom of the file, add the following line:
```bash
$USER ALL=(ALL) NOPASSWD: ALL
```