Add covariance info to Pose and Vel
Fix getMode bug
This commit is contained in:
parent
1133a0e4bb
commit
82b01e4057
5 changed files with 149 additions and 13 deletions
|
@ -69,6 +69,10 @@ namespace create {
|
|||
gettimeofday(&now, NULL);
|
||||
return now.tv_usec + (timestamp_t) now.tv_sec * 1000000;
|
||||
}
|
||||
|
||||
inline bool willFloatOverflow(const float a, const float b) {
|
||||
return ( (a < 0.0) == (b < 0.0) && std::abs(b) > std::numeric_limits<float>::max() - std::abs(a) );
|
||||
}
|
||||
} // namespace util
|
||||
} // namespace create
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue