Difference between revisions of "ConfigIMU"

From cogniteam
Jump to: navigation, search
(Hamster IMU calibration instruction)
Line 5: Line 5:
 
That said, calibration changes depending your location on the globe, so you will probably need to recalibrate if you want to use accurate readings from the IMU in your application. In order to do so:
 
That said, calibration changes depending your location on the globe, so you will probably need to recalibrate if you want to use accurate readings from the IMU in your application. In order to do so:
 
 
Choose a place that excludes the effects of metal surfaces and different magnetic fields for successful calibration.
+
* Choose a place that excludes the effects of metal surfaces and different magnetic fields for successful calibration.
Turn on robot.
+
* Turn on robot.
Enter your Linux console.
+
* Enter your Linux console.
Run roscore executable command.
+
* Run roscore executable command.
  
 +
<syntaxhighlight lang="bash" line='line'>
 
ssh to the Hamster from another console terminal.
 
ssh to the Hamster from another console terminal.
 +
</syntaxhighlight>
  
 +
<syntaxhighlight lang="bash" line='line'>
 
ssh pi@10.0.2/n : n – agent number.
 
ssh pi@10.0.2/n : n – agent number.
 +
</syntaxhighlight>
  
Enter password – hamster.
+
 
Run htop in the Master-PI console:
+
* Enter password – hamster.
 +
*Run htop in the Master-PI console:
  
 
 
Stop all launches on the Master-PI (choose launch process and press F9+2).
+
* Stop all launches on the Master-PI (choose launch process and press F9+2).
Exit htop (press F10).
+
* Exit htop (press F10).
Run calibration node in the same Master-PI terminal :
+
* Run calibration node in the same Master-PI terminal :
  
 +
<syntaxhighlight lang="bash" line='line'>
 
rosrun hamster_driver hamster_imu_node _port:=/dev/ttyAMA0  
 
rosrun hamster_driver hamster_imu_node _port:=/dev/ttyAMA0  
 
+
</syntaxhighlight>
Rotate the robot in three directions (x, y, z) while the algorithm processes the measurement results.  
+
*Rotate the robot in three directions (x, y, z) while the algorithm processes the measurement results.  
 
+
* For successful calibration robot rotation trajectory should repeat 3D sphere in space.
+
*After results receiving ( last 6 rows ) in .config file change values:
+
<syntaxhighlight lang="bash" line='line'>
For successful calibration robot rotation trajectory should repeat 3D sphere in space.
 
 
 
After results receiving ( last 6 rows ) in .config file change values:
 
 
 
 
pico hamster.config in the Master-PI console.  
 
pico hamster.config in the Master-PI console.  
 
+
</syntaxhighlight>
 
+
* Press Ctrl+x → y to save values.
Press Ctrl+x → y to save values.
+
* Reboot robot.
 
 
Reboot robot.
 

Revision as of 11:09, 27 February 2017

Hamster IMU calibration instruction

The Hamster IMU arrives calibrated. That said, calibration changes depending your location on the globe, so you will probably need to recalibrate if you want to use accurate readings from the IMU in your application. In order to do so:

  • Choose a place that excludes the effects of metal surfaces and different magnetic fields for successful calibration.
  • Turn on robot.
  • Enter your Linux console.
  • Run roscore executable command.

<syntaxhighlight lang="bash" line='line'> ssh to the Hamster from another console terminal. </syntaxhighlight>

<syntaxhighlight lang="bash" line='line'> ssh pi@10.0.2/n : n – agent number. </syntaxhighlight>


  • Enter password – hamster.
  • Run htop in the Master-PI console:


  • Stop all launches on the Master-PI (choose launch process and press F9+2).
  • Exit htop (press F10).
  • Run calibration node in the same Master-PI terminal :

<syntaxhighlight lang="bash" line='line'> rosrun hamster_driver hamster_imu_node _port:=/dev/ttyAMA0 </syntaxhighlight>

  • Rotate the robot in three directions (x, y, z) while the algorithm processes the measurement results.
  • For successful calibration robot rotation trajectory should repeat 3D sphere in space.
  • After results receiving ( last 6 rows ) in .config file change values:

<syntaxhighlight lang="bash" line='line'> pico hamster.config in the Master-PI console. </syntaxhighlight>

  • Press Ctrl+x → y to save values.
  • Reboot robot.