Skip to content

Commit

Permalink
Added ROS package to IMU
Browse files Browse the repository at this point in the history
  • Loading branch information
rogergranada committed Oct 23, 2017
1 parent 287d940 commit 99fb331
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions docs/source/jetson/peripheral/imu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Checking IMU values
As a test, you can look at the raw readings from the sensors on your IMU to make sure it is OK by running:

.. code-block:: bash
$ minimu9-ahrs --mode raw
The output should look something like this:
Expand All @@ -132,6 +133,51 @@ The output should look something like this:
-1309 -3105 -1799 1898 1214 3663 11 15 -2
Installing ROS Package
-----------------------

In order to install the ROS package to access IMU data, first we have to download and install the `RTIMULib2 <https://github.com/RTIMULib/RTIMULib2/tree/master/Linux>`_ library by running:

.. code-block:: bash
$ git clone https://github.com/RTIMULib/RTIMULib2.git
$ cd RTIMULib2/Linux/
$ mkdir build
$ cd build
$ cmake ..
$ make -j4
$ sudo make install
$ sudo ldconfig
Having the RTIMULib2 library installed in the Jetson, download and install the i2c_imu package for ROS by typing:

.. code-block:: bash
$ git clone https://github.com/jeskesen/i2c_imu.git
$ mv i2c_imu/ ~/catkin_ws/src/
$ cd ~/catkin_ws/
$ catkin_make
Testing ROS Package
-----------------------

To test the ROS package for IMU, you should call the ``i2c_imu_auto.launch`` and check whether the topic ``/imu/data`` exists. To do so, run:

.. code-block:: bash
$ roslaunch i2c_imu i2c_imu_auto.launch
In another terminal, run:

.. code-block:: bash
$ rostopic list
And check the topics that appear.



References
-----------

Expand Down

0 comments on commit 99fb331

Please sign in to comment.