Difference between revisions of "ConfigIMU"

From cogniteam
Jump to: navigation, search
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{DISPLAYTITLE:IMU}}
 
{{DISPLAYTITLE:IMU}}
[[Category:Hamster]]
+
[[Category:HamsterV5]]
 +
[[Category:HamsterV4]]
 +
[[Category:HamsterV6]]
 +
[[Category:HamsterV7]]
 +
[[Category:HamsterV7I]]
 +
[[Category:HamsterV7N]]
 +
 
 
=== Hamster IMU calibration instruction ===
 
=== Hamster IMU calibration instruction ===
  
Line 12: Line 18:
 
* ssh to the Hamster from another console terminal.
 
* ssh to the Hamster from another console terminal.
 
<syntaxhighlight lang="bash" line='line'>
 
<syntaxhighlight lang="bash" line='line'>
ssh pi@10.0.2/n : n – agent number.
+
ssh pi@10.0.2.n : n – agent number.
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 18: Line 24:
 
* Enter password – hamster.
 
* Enter password – hamster.
 
* Run htop in the Master-PI console:
 
* Run htop in the Master-PI console:
 +
[[File:IMU_calib_1.png|700px]]
  
 
 
Line 25: Line 32:
  
 
<syntaxhighlight lang="bash" line='line'>
 
<syntaxhighlight lang="bash" line='line'>
rosrun hamster_driver hamster_imu_node _port:=/dev/ttyAMA0  
+
rosrun hamster_driver hamster_imu_calibration_node _port:=/dev/ttyAMA0 _baud_rate:=115200
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
[[File:IMU_calib_2.png|700px]]
 +
 
*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.  
 +
[[File:IMU_calib_3.png|700px]]
 +
 
* For successful calibration robot rotation trajectory should repeat 3D sphere in space.
 
* For successful calibration robot rotation trajectory should repeat 3D sphere in space.
 
*After results receiving ( last 6 rows ) in .config file change values:
 
*After results receiving ( last 6 rows ) in .config file change values:
Line 35: Line 46:
 
pico hamster.config   
 
pico hamster.config   
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
[[File:IMU_calib_4.png|700px]]
 +
 
* Press Ctrl+x → y to save values.
 
* Press Ctrl+x → y to save values.
 
* Reboot robot.
 
* Reboot robot.

Latest revision as of 12:01, 5 January 2021


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.
  • ssh to the Hamster from another console terminal.

<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:

IMU calib 1.png


  • 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_calibration_node _port:=/dev/ttyAMA0 _baud_rate:=115200 </syntaxhighlight> IMU calib 2.png

  • Rotate the robot in three directions (x, y, z) while the algorithm processes the measurement results.

IMU calib 3.png

  • For successful calibration robot rotation trajectory should repeat 3D sphere in space.
  • After results receiving ( last 6 rows ) in .config file change values:
  • In the Master-PI console

<syntaxhighlight lang="bash" line='line'> pico hamster.config </syntaxhighlight> IMU calib 4.png

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