Skip to content

xopxe/micro_rosso_mpu6050

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

micro rosso mpu6050

This a module for the micro_rosso system.

It provides support for the MPU6050 IMU by publishing ROS2 topics.

Loading and starting

First, import the module into your project's platformio.ini:

lib_deps =
    ...
    https://github.com/xopxe/micro_rosso_mpu6050.git

Then, in your main.cpp:

...
#include "micro_rosso_mpu6050.h"
ImuMPU6050 imu;
...
void setup() {
  Wire.begin(I2C_SDA, I2C_SCL); // initialize I2C as needed
  ...
  imu.setup(Wire);
  ...
}

The setup method allows passing optional topic names and a different micro_rosso timer to change the publication rate (by default, it uses the 5Hz timer). It is declared as follows:

  static bool setup(TwoWire &wire = Wire,
                    const char *topic_raw = "/imu/raw",
                    const char *topic_temp = "/imu/temperature",
                    timer_descriptor &timer = micro_rosso::timer_report);

Using the module

The module emits the following topics:

Authors and acknowledgment

jvisca@fing.edu.uy - Grupo MINA, Facultad de Ingeniería - Udelar, 2024

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages