Classes | Public Attributes | List of all members
crl::multisense::imu::Info Class Reference

#include <MultiSenseTypes.hh>

Classes

struct  RangeEntry
 
struct  RateEntry
 

Public Attributes

std::string device
 
std::string name
 
std::vector< RangeEntryranges
 
std::vector< RateEntryrates
 
std::string units
 

Detailed Description

Class containing detailed information for the IMU. A vector of Info classes are returned by reference in crl::multisense::Channel::getImuInfo

See http://docs.carnegierobotics.com/ for more info on the specific IMU sensors used

Example code to query IMU info:

//
// Instantiate a channel connecting to a sensor at the factory default
// IP address
channel = crl::multisense::Channel::Create("10.66.171.21");
channel->setMtu(1500);
//
// Create a vector of IMU info instances to store information for
// each IMU sensor
std::vector<crl::multisense::imu::Info> imuInfoVect;
//
// Create a uint32_t to store the maxSamplesPerMessage quantity returned
// by reference from getImuInfo
uint32_t maxSamplesPerMessage;
//
// Query the IMU info from the Channel instance
crl::multisense::Status status = channel->getImuInfo(maxSamplesPerMessage, imuInfoVect);
//
// Check to see if the IMU info query was successful
throw std::runtime_error("Unable to query imu info");
}
//
// Use the imu info...
//
// Destroy the channel instance

Definition at line 2710 of file Legacy/include/MultiSense/MultiSenseTypes.hh.

Member Data Documentation

◆ device

std::string crl::multisense::imu::Info::device

The device name for a specific IMU source

Definition at line 2737 of file Legacy/include/MultiSense/MultiSenseTypes.hh.

◆ name

std::string crl::multisense::imu::Info::name

The name of a specific IMU source

Definition at line 2735 of file Legacy/include/MultiSense/MultiSenseTypes.hh.

◆ ranges

std::vector<RangeEntry> crl::multisense::imu::Info::ranges

The various ranges and resolutions available for a specific IMU source

Definition at line 2743 of file Legacy/include/MultiSense/MultiSenseTypes.hh.

◆ rates

std::vector<RateEntry> crl::multisense::imu::Info::rates

The various rates available for a specific IMU source

Definition at line 2741 of file Legacy/include/MultiSense/MultiSenseTypes.hh.

◆ units

std::string crl::multisense::imu::Info::units

The units of for a specific IMU source

Definition at line 2739 of file Legacy/include/MultiSense/MultiSenseTypes.hh.


The documentation for this class was generated from the following file:
crl::multisense::Channel::getImuInfo
virtual Status getImuInfo(uint32_t &maxSamplesPerMessage, std::vector< imu::Info > &info)=0
crl::multisense::Status_Ok
static CRL_CONSTEXPR Status Status_Ok
Definition: Legacy/include/MultiSense/MultiSenseTypes.hh:99
crl::multisense::Channel::Destroy
static void Destroy(Channel *instanceP)
Definition: Legacy/details/channel.cc:863
crl::multisense::Channel::setMtu
virtual Status setMtu(int32_t mtu)=0
crl::multisense::Channel::Create
static Channel * Create(const std::string &sensorAddress)
Definition: Legacy/details/channel.cc:817
crl::multisense::Status
int32_t Status
Definition: Legacy/include/MultiSense/MultiSenseTypes.hh:94
crl::multisense::Channel
Definition: Legacy/include/MultiSense/MultiSenseChannel.hh:69


multisense_lib
Author(s):
autogenerated on Thu Apr 17 2025 02:49:10