-
Notifications
You must be signed in to change notification settings - Fork 9
Selecting Feedback
muralivnv edited this page Dec 30, 2017
·
2 revisions
Three types of state-feedback can be selected,
-
GPS + Compass
- local position from GPS with starting pose as origin and Compass for heading direction.
-
Encoder + Compass
- local position from Encoder count using dead-reckoning and Compass for heading direction.
-
Pure GPS
- local position from GPS with starting pose as origin and tangent angle between successive GPS measurements for heading direction.
The required feedback can be set by interacting to dynamic-reconfigure-server written for this purpose. A dynamic-reconfigure-client feedbackSet_client.cpp
can be used to change the feedback. This client accepts a command line argument (single digit integer) for setting the feedback
0 : GPS + Compass 1 : Encoder + Compass 2 : Pure GPS
rosrun state_feedback feedbackSet_client <Flag>
Example
- To select GPS + Compass
rosrun state_feedback feedbackSet_client 0
- To select Encoder + Compass
rosrun state_feedback feedbackSet_client 1
- To select Pure GPS
rosrun state_feedback feedbackSet_client 2
As typing in the command rosrun ... is too tedious, a bash-script called select_feedback.sh
is written which would give the same functionality as mentioned above. Same flags(0, 1, 2) as mentioned above can be provided to the bash-script to change the gains. Additional flags for more intuitive setting is also provided using bash-script
Usage
- To select GPS + Compass
(or)
select_feedback 0
select_feedback -gps_cmp
- To select Encoder + Compass
(or)
select_feedback 1
select_feedback -encoder_cmp
- To select Pure GPS
(or)
select_feedback 2
select_feedback -gps