Skip to content

Commit

Permalink
Merge pull request #7 from CMU-cabot/add-test-cases
Browse files Browse the repository at this point in the history
Add functions to improve test and evaluation for cabot_navigation2
  • Loading branch information
daisukes authored Feb 22, 2024
2 parents 399ca72 + e7bc047 commit 7a3c1d4
Show file tree
Hide file tree
Showing 14 changed files with 1,255 additions and 44 deletions.
16 changes: 16 additions & 0 deletions cabot_navigation2/test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,22 @@ func test_name(tester: Tester)
- `condition` : pyton snipet to check if the `msg` matches the condition
- `wait` : wait for seconds
- `seconds` : wait time in seconds
- `set_evaluation_parameters(metrics=[], robot_radius=None)` : set parameters used for computing metrics
- `metrics : Optional[list], default=[]` : list of metric functions to be computed. The callable functions are defined in [evaluation_metrics.py](evaluation_metrics.py).
- Example
```
metrics=[
"total_time",
"robot_path_length",
"time_not_moving",
"avg_robot_linear_speed",
"cumulative_heading_changes"
]
```
- Note: The implementation of the metric functions is not stable as it is under development.
- `robot_radius : Optional[float], default=None` : robot radius used to detect collisions in metric computation. If not defined, the default value (0.45) defined in the pedestrian plugin will be used.
- `start_evaluation` : start computing the metrics. This method should be called when ready to start the navigation.
- `stop_evaluation` : stop computing the metrics. It is usually not necessary to call this method because it is automatically called when the test ends.

---
**old one with run_test_yaml.py**
Expand Down
Loading

0 comments on commit 7a3c1d4

Please sign in to comment.