correct getOdom issue
This commit is contained in:
@@ -184,8 +184,8 @@ bool VioNode::getOdom(vio::getOdom::Request &req, vio::getOdom::Response &res) {
|
|||||||
res.header.frame_id = "/world";
|
res.header.frame_id = "/world";
|
||||||
res.header.seq = trace_id_;
|
res.header.seq = trace_id_;
|
||||||
auto odom=vo_->ukfPtr_.get_location();
|
auto odom=vo_->ukfPtr_.get_location();
|
||||||
res.x=odom.second.translation()(0);
|
res.x=-odom.second.se2().translation()(0);
|
||||||
res.y=odom.second.translation()(1);
|
res.y=-odom.second.se2().translation()(1);
|
||||||
res.yaw=odom.second.pitch();
|
res.yaw=odom.second.pitch();
|
||||||
res.cov={odom.first(0,0),odom.first(0,1),odom.first(0,2),
|
res.cov={odom.first(0,0),odom.first(0,1),odom.first(0,2),
|
||||||
odom.first(1,0),odom.first(1,1),odom.first(1,2),
|
odom.first(1,0),odom.first(1,1),odom.first(1,2),
|
||||||
|
|||||||
Reference in New Issue
Block a user