Main Page | Recent changes | Edit this page | Page history

Printable version | Disclaimers | Privacy policy

Not logged in
Log in | Help
 

Astate

From DGC Wiki

Contents

Astate is the state estimator for Alice. An overview of the operation of this module is given in Jeremy Leib's SURF Report from 2005.

Hardware

Astate makes use of the LN 200 IMU, the Navcom GPS and the Novatel GPS to measure the motion of the system. In addition, it uses the OBD II interface to determine whether the vehicle is stopped.



Troubleshooting

** lsmod (to see the modules linked to kernel; if escc0 has more than two accessing processes, this may be the problem)
** ps -aux | grep ast (to see how many astate processes are running. IMPORTANT: search for ast and not for astate)
** killall astate (this will work only if run by the owner of the processes or as root)
** lsmod (escc0 shall be empty, now)
** fastcomm_esccp_setup (to reinitialize the PCI card)

For problems on the above procedure contact Steve G.

Software


Command Line Settings

Flag(s) Usage Notes
-o --obdDisable use of OBD II OBD II is used to determine when the vehicle velocity is zero. Adrive must be running in order to get OBD II messages. Use this flag to tell astate not to look for OBD II messages.
-c Turn off use of superCon in interface If specified, tells astate not to include its superCon logic. This is implemented in the AState_Update loop by disabling checks for state jumps. The AState_MetaState code is unaffected (but should never be activated).

Display values

Label Variable Description
OBD &_metaState.obdActive, obdCount obdActive is set in AState_MetaState.cc if the heartbeat function is set (in AState_OBDII.cc). obdCount is updated in AState_Update if the OBD buffer is read.
stateJump stateJump Status of stateJump requests to superCon. Most of the logic for this is in AState_MetaState.cc
  • JUMP_NONE (0) - normal operation; no state jump requested
  • JUMP_REQUESTED (1) - set in AState_Update.cc if current state is JUMP_NONE and navConf is greater than JUMP_THRESHOLD (2 m)
  • JUMP_OK (2) - set when superCon says that it is OK to move the state estimate
  • JUMP_DONE (3) - set when astate thinks that the error is small enough to begin moving again

These values are not updated if astate is started with the -c flag (useSC = 0)

GPS - Nav trackErr This entry was removed on 26 Nov
Nov - Est trackErr Euclidean distance between current state estimate and Novatel position
factor novStdFactor Set the multiplication factor for the standard deviation of the Novatel GPS measurements. A value of 1 will use what the Novatel unit tells us. The default value is 0.1 and 0.01 seems to work well if you really trust your measurements.
FOM gpsFOM Figure of merit from GPS (both?). Displayed but not otherwise used.
DOP gpsDOP Degree of precision from GPS (both?). Used to set covariance for KF in AState_Update
StateMode stateMode Current mode for astate. Used in AState_Update.cc and AState_MetaState.cc
  • PREINIT (0) - initial mode that astate starts in. Resets some variables and then sets state to init.
  • INIT (1) - initialization mode; collects up data until we are ready to go and then initializes Kalman filter
  • NAV (2) - normal operation
  • FALLBACK (3) - used if the IMU is not active
  • OH_SHIT (4)

</table>

Troubleshooting

  • Astate crashes with nan for reported state: Not sure yet what is causing this.

Miscellaneous Notes

Old documentation: there are several pages for astate documentation that haven't been updated in a while and probably aren't correct:

  • State Server Index - has early documentation about the state server (astate), including a list of components. Over time, this page should replace that one
  • AState howto - talks about how to run astate, including a desription of how to start up the GPS, IMU, etc
  • AState Explained - a discussion of the code behind astate. This was written over the summer, so not sure whiich version (NGC or JL) is actually documented.
  • Tuning AState - gives insights into how to tune the old NGC version of astate. Obsolete.
  • vstate - old vehlib code that determined state
  • vstate hardware documentation (2004)

Retrieved from "http://kincora.cds.caltech.edu../../../a/s/t/Astate.html"

This page has been accessed 346 times. This page was last modified 17:13, 12 October 2006 by stefano di cairano. Based on work by Richard Murray and Jessica Gonzalez.


[Main Page]
Main Page
Alice Docs
DGC07
DGC05
Categories
Recent changes
Help

Edit this page
Discuss this page
Page history
What links here
Related changes

Special pages
Bug reports