Skip to content

Commit 5da80c1

Browse files
committed
move actions to cobot
1 parent 4569ef8 commit 5da80c1

19 files changed

Lines changed: 10 additions & 145 deletions

robot_interface/README.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
11
# CodeBotler Robot Interface
22

33
CodeBotler utilizes [ROS2 actions](https://docs.ros.org/en/humble/Tutorials/Intermediate/Writing-an-Action-Server-Client/Py.html) to execute generated code on a real robot.
4-
[robot_interface/src/robot_client_interface.py](src/robot_client_interface.py) defines the action clients that CodeBotler uses to call the robot action servers. The action definitions are in [robot_interface/src/robot_actions_pkg/action](src/robot_actions_pkg/action). An example robot action server script is provided in [robot_interface/src/robot_server_example.py](src/robot_server_example.py) - the example server simply prints action calls to the terminal, along with the call arguments and the result.
4+
[robot_interface/src/robot_client_interface.py](src/robot_client_interface.py) defines the action clients that CodeBotler uses to call the robot action servers. The action definitions are provided by the `cobot_codebotler_actions` package. An example robot action server script is provided in [robot_interface/src/robot_server_example.py](src/robot_server_example.py) - the example server simply prints action calls to the terminal, along with the call arguments and the result.
55
You can use this example script as a template to implement the action servers for your robot.
66

7-
## Build
8-
To build the action messages and the CodeBotler client:
9-
1. Navigate to the `robot_interface` subdirectory and run `colcon build`:
7+
## Setup
8+
To set up the CodeBotler robot interface:
9+
1. Ensure the `cobot_codebotler_actions` package is built and sourced in your ROS2 environment
10+
2. Install Python dependencies:
1011
```bash
1112
cd robot_interface
12-
colcon build
13-
```
14-
1. Source the ROS2 workspace setup script:
15-
```bash
16-
source install/setup.bash
17-
```
18-
1. Optionally, add the ROS2 workspace setup script to your `~/.bashrc` file to automatically source the setup script when opening a new terminal.
19-
```bash
20-
echo "source $(pwd)/install/setup.bash" >> ~/.bashrc
13+
pip install -r requirements.txt
2114
```
2215

2316
## Usage

robot_interface/setup_robot.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
22

33
pip install -r requirements.txt
4-
colcon build
4+
# Note: cobot_codebotler_actions package must be built and sourced separately
5+
# No local build required - these are standalone Python scripts

robot_interface/src/robot_actions_pkg/CMakeLists.txt

Lines changed: 0 additions & 46 deletions
This file was deleted.

robot_interface/src/robot_actions_pkg/action/Ask.action

Lines changed: 0 additions & 6 deletions
This file was deleted.

robot_interface/src/robot_actions_pkg/action/GetAllRooms.action

Lines changed: 0 additions & 4 deletions
This file was deleted.

robot_interface/src/robot_actions_pkg/action/GetCurrentLocation.action

Lines changed: 0 additions & 4 deletions
This file was deleted.

robot_interface/src/robot_actions_pkg/action/GetReachableLocationsAroundObject.action

Lines changed: 0 additions & 4 deletions
This file was deleted.

robot_interface/src/robot_actions_pkg/action/GoTo.action

Lines changed: 0 additions & 4 deletions
This file was deleted.

robot_interface/src/robot_actions_pkg/action/IsInRoom.action

Lines changed: 0 additions & 4 deletions
This file was deleted.

robot_interface/src/robot_actions_pkg/action/Pick.action

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)