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
|
@ -33,6 +33,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
#define CREATE_H
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/numeric/ublas/matrix.hpp>
|
||||
#include <string>
|
||||
#include <unistd.h>
|
||||
|
||||
|
@ -44,6 +45,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
namespace create {
|
||||
class Create {
|
||||
private:
|
||||
typedef boost::numeric::ublas::matrix<float> Matrix;
|
||||
|
||||
enum CreateLED {
|
||||
LED_DEBRIS = 1,
|
||||
LED_SPOT = 2,
|
||||
|
@ -75,9 +78,13 @@ namespace create {
|
|||
bool firstOnData;
|
||||
util::timestamp_t prevOnDataTime;
|
||||
|
||||
Matrix poseCovar;
|
||||
|
||||
void init();
|
||||
bool updateLEDs();
|
||||
// Add two matrices and handle overflow case
|
||||
Matrix addMatrices(const Matrix &A, const Matrix &B) const;
|
||||
void onData();
|
||||
bool updateLEDs();
|
||||
|
||||
protected:
|
||||
boost::shared_ptr<create::Data> data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue