Skip to content
Snippets Groups Projects
Commit 9b363aa7 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Resize state_block_vec in SensorGPS constructor

parent e66c60a4
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ SensorGPS::SensorGPS(StateBlockPtr _p_ptr, //GPS sensor position with respect to ...@@ -13,6 +13,7 @@ SensorGPS::SensorGPS(StateBlockPtr _p_ptr, //GPS sensor position with respect to
: :
SensorBase("GPS", _p_ptr, _o_ptr, _bias_ptr, 0) SensorBase("GPS", _p_ptr, _o_ptr, _bias_ptr, 0)
{ {
getStateBlockVec().resize(5);
setStateBlockPtr(3, _map_p_ptr); // Map position setStateBlockPtr(3, _map_p_ptr); // Map position
setStateBlockPtr(4, _map_o_ptr); // Map orientation setStateBlockPtr(4, _map_o_ptr); // Map orientation
// //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment