8000 refactor: o3de config by jmatejcz · Pull Request #630 · RobotecAI/rai · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor: o3de config #630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 1 addition & 23 deletions docs/tutorials/benchmarking.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,10 @@ If your goal is creating custom tasks and scenarios, visit [Creating Custom Task
## Manipulation O3DE

- Follow setup from [Manipulation demo Setup](../demos/manipulation.md#setup)
- Create the O3DE config:
```yaml
binary_path: /path/to/binary/RAIManipulationDemo.GameLauncher
level: RoboticManipulationBenchmark
robotic_stack_command: ros2 launch examples/manipulation-demo-no-binary.launch.py
required_simulation_ros2_interfaces:
services:
- /spawn_entity
- /delete_entity
topics:
- /color_image5
- /depth_image5
- /color_camera_info5
actions: []
required_robotic_ros2_interfaces:
services:
- /grounding_dino_classify
- /grounded_sam_segment
- /manipulator_move_to
topics: []
actions: []
```
- Run the benchmark with:

```bash
python src/rai_bench/rai_bench/examples/manipulation_o3de.py --model-name <your-model> --vendor <your-vendor> --o3de-config-path <path/to/your/config> --levels <trivial, easy>
python src/rai_bench/rai_bench/examples/manipulation_o3de.py --model-name <your-model> --vendor <your-vendor> --levels <trivial, easy>
```

!!! warning
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
binary_path: demo_assets/manipulation/RAIManipulationDemo/RAIManipulationDemo.GameLauncher
level: RoboticManipulationBenchmark
required_simulation_ros2_interfaces:
services:
- /spawn_entity
- /delete_entity
topics:
- /color_image5
- /depth_image5
- /color_camera_info5
actions: []
required_robotic_ros2_interfaces:
services:
- /grounding_dino_classify
- /grounded_sam_segment
- /manipulator_move_to
topics: []
actions: []
2 changes: 1 addition & 1 deletion src/rai_bench/rai_bench/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def parse_manipulation_o3de_benchmark_args():
parser.add_argument(
"--o3de-config-path",
type=str,
required=True,
default="src/rai_bench/rai_bench/manipulation_o3de/predefined/configs/o3de_config.yaml",
help="Path to the O3DE configuration file",
)
parser.add_argument(
Expand Down
1 change: 0 additions & 1 deletion tests/rai_sim/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def sample_base_yaml_config(tmp_path: Path) -> Path:
def sample_o3dexros2_config(tmp_path: Path) -> Path:
yaml_content = """
binary_path: /path/to/binary
robotic_stack_command: "ros2 launch robotic_stack.launch.py"
required_simulation_ros2_interfaces:
services:
- /spawn_entity
Expand Down
0