Bratmobile
|
Contains the differences between the contiuous components of two hybrid states. More...
#include <graphTools.h>
Public Types | |
enum | WHAT_D_FLAG { DI , DN } |
Public Member Functions | |
StateDifference (const State &s1, const State &s2) | |
float | sum () |
float | sum_r () |
Total difference in "global" robot pose. | |
float | sum_D_pos (const BodyFeatures &bf) |
Total difference in disturbance pose. More... | |
float | sum_D_shape (const BodyFeatures &bf) |
Total difference in disturbance shape. More... | |
float | sum_D (const BodyFeatures &bf) |
Total difference in disturbance pose and shape combined. More... | |
float | get_sum (int mt) |
Returns difference in certain aspects we want to match between states. More... | |
void | init (const State &s1, const State &s2) |
Initialises the difference object using two states we want to compare. More... | |
void | fill_invalid_bodyfeatures (BodyFeatures &) |
Fills bf match with large values indicating no match. | |
void | fill_valid_bodyfeatures (BodyFeatures &bf, const State &s1, const State &s2, WHAT_D_FLAG flag) |
Fills the bodyfeatures match with differences between disturbances in the two states. Differences are calculated in the position local to the robot in that state, not globally. More... | |
Public Attributes | |
b2Transform | pose =b2Transform_zero |
BodyFeatures | Di |
BodyFeatures | Dn |
Contains the differences between the contiuous components of two hybrid states.
void StateDifference::fill_valid_bodyfeatures | ( | BodyFeatures & | bf, |
const State & | s1, | ||
const State & | s2, | ||
WHAT_D_FLAG | flag | ||
) |
Fills the bodyfeatures match with differences between disturbances in the two states. Differences are calculated in the position local to the robot in that state, not globally.
bf | body features to fill |
s1 | |
s2 | |
flag | whether it's a Di or Dn |
float StateDifference::get_sum | ( | int | mt | ) |
Returns difference in certain aspects we want to match between states.
mt | the match type |
Initialises the difference object using two states we want to compare.
s1 | |
s2 |
|
inline |
Total difference in disturbance pose and shape combined.
bf | body features of disturbance |
|
inline |
Total difference in disturbance pose.
bf | body features of disturbance |
|
inline |
Total difference in disturbance shape.
bf | body features of disturbance |