Skip to content

Commit 595439e

Browse files
committed
add some const qualifiers to the methods from MobileRobot
1 parent 8f89b00 commit 595439e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

orocos_bfl/examples/mobile_robot.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ namespace BFL
9191
}
9292

9393

94-
ColumnVector
94+
const ColumnVector
9595
MobileRobot::Measure()
9696
{
9797
return _meas_model->Simulate(_state);
9898
}
9999

100100

101-
ColumnVector
101+
const ColumnVector
102102
MobileRobot::GetState()
103103
{
104104
return _state;

orocos_bfl/examples/mobile_robot.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ namespace BFL{
5252
~MobileRobot();
5353

5454
void Move(MatrixWrapper::ColumnVector inputs);
55-
MatrixWrapper::ColumnVector Measure();
56-
MatrixWrapper::ColumnVector GetState(); //method only for simulation purposes
55+
const MatrixWrapper::ColumnVector Measure();
56+
const MatrixWrapper::ColumnVector GetState(); //method only for simulation purposes
5757

5858
private:
5959
Gaussian* _system_Uncertainty;

0 commit comments

Comments
 (0)