Skip to content

Commit bfd7f5c

Browse files
committed
document axiom in StageStatistics.solved
If the axiom is violated, sorting in the rviz panel will fail.
1 parent bc9e8ec commit bfd7f5c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

msgs/msg/StageStatistics.msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# unique id within task
44
uint32 id
55

6-
# successful solution IDs of this stage
6+
# successful solution IDs of this stage, sorted by increasing cost
77
uint32[] solved
88

99
# (optional) failed solution IDs of this stage

visualization/motion_planning_tasks/src/remote_task_model.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,8 @@ void RemoteSolutionModel::processSolutionIDs(const std::vector<uint32_t>& succes
640640
}
641641

642642
void RemoteSolutionModel::processSolutionIDs(const std::vector<uint32_t>& ids, bool successful) {
643-
// ids are ordered by cost, insert them into data_ list sorted by id
643+
// Interface axiom: ids are sorted by cost
644+
// insert them into data_ list sorted by id
644645
double default_cost =
645646
successful ? std::numeric_limits<double>::quiet_NaN() : std::numeric_limits<double>::infinity();
646647
uint32_t cost_rank = 0;

0 commit comments

Comments
 (0)