sensor_msgs

package
v2.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 4 Imported by: 8

Documentation

Overview

Package sensor_msgs contains message definitions.

Index

Constants

View Source
const (
	BatteryState_POWER_SUPPLY_STATUS_UNKNOWN               uint8 = 0
	BatteryState_POWER_SUPPLY_STATUS_CHARGING              uint8 = 1
	BatteryState_POWER_SUPPLY_STATUS_DISCHARGING           uint8 = 2
	BatteryState_POWER_SUPPLY_STATUS_NOT_CHARGING          uint8 = 3
	BatteryState_POWER_SUPPLY_STATUS_FULL                  uint8 = 4
	BatteryState_POWER_SUPPLY_HEALTH_UNKNOWN               uint8 = 0
	BatteryState_POWER_SUPPLY_HEALTH_GOOD                  uint8 = 1
	BatteryState_POWER_SUPPLY_HEALTH_OVERHEAT              uint8 = 2
	BatteryState_POWER_SUPPLY_HEALTH_DEAD                  uint8 = 3
	BatteryState_POWER_SUPPLY_HEALTH_OVERVOLTAGE           uint8 = 4
	BatteryState_POWER_SUPPLY_HEALTH_UNSPEC_FAILURE        uint8 = 5
	BatteryState_POWER_SUPPLY_HEALTH_COLD                  uint8 = 6
	BatteryState_POWER_SUPPLY_HEALTH_WATCHDOG_TIMER_EXPIRE uint8 = 7
	BatteryState_POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE   uint8 = 8
	BatteryState_POWER_SUPPLY_TECHNOLOGY_UNKNOWN           uint8 = 0
	BatteryState_POWER_SUPPLY_TECHNOLOGY_NIMH              uint8 = 1
	BatteryState_POWER_SUPPLY_TECHNOLOGY_LION              uint8 = 2
	BatteryState_POWER_SUPPLY_TECHNOLOGY_LIPO              uint8 = 3
	BatteryState_POWER_SUPPLY_TECHNOLOGY_LIFE              uint8 = 4
	BatteryState_POWER_SUPPLY_TECHNOLOGY_NICD              uint8 = 5
	BatteryState_POWER_SUPPLY_TECHNOLOGY_LIMN              uint8 = 6
)
View Source
const (
	JoyFeedback_TYPE_LED    uint8 = 0
	JoyFeedback_TYPE_RUMBLE uint8 = 1
	JoyFeedback_TYPE_BUZZER uint8 = 2
)
View Source
const (
	NavSatFix_COVARIANCE_TYPE_UNKNOWN        uint8 = 0
	NavSatFix_COVARIANCE_TYPE_APPROXIMATED   uint8 = 1
	NavSatFix_COVARIANCE_TYPE_DIAGONAL_KNOWN uint8 = 2
	NavSatFix_COVARIANCE_TYPE_KNOWN          uint8 = 3
)
View Source
const (
	NavSatStatus_STATUS_NO_FIX   int8   = -1
	NavSatStatus_STATUS_FIX      int8   = 0
	NavSatStatus_STATUS_SBAS_FIX int8   = 1
	NavSatStatus_STATUS_GBAS_FIX int8   = 2
	NavSatStatus_SERVICE_GPS     uint16 = 1
	NavSatStatus_SERVICE_GLONASS uint16 = 2
	NavSatStatus_SERVICE_COMPASS uint16 = 4
	NavSatStatus_SERVICE_GALILEO uint16 = 8
)
View Source
const (
	PointField_INT8    uint8 = 1
	PointField_UINT8   uint8 = 2
	PointField_INT16   uint8 = 3
	PointField_UINT16  uint8 = 4
	PointField_INT32   uint8 = 5
	PointField_UINT32  uint8 = 6
	PointField_FLOAT32 uint8 = 7
	PointField_FLOAT64 uint8 = 8
)
View Source
const (
	Range_ULTRASOUND uint8 = 0
	Range_INFRARED   uint8 = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BatteryState

type BatteryState struct {
	msg.Package           `ros:"sensor_msgs"`
	msg.Definitions       `` /* 807-byte string literal not displayed */
	Header                std_msgs.Header
	Voltage               float32
	Temperature           float32
	Current               float32
	Charge                float32
	Capacity              float32
	DesignCapacity        float32
	Percentage            float32
	PowerSupplyStatus     uint8
	PowerSupplyHealth     uint8
	PowerSupplyTechnology uint8
	Present               bool
	CellVoltage           []float32
	CellTemperature       []float32
	Location              string
	SerialNumber          string
}

type CameraInfo

type CameraInfo struct {
	msg.Package     `ros:"sensor_msgs"`
	Header          std_msgs.Header
	Height          uint32
	Width           uint32
	DistortionModel string
	D               []float64   `rosname:"D"`
	K               [9]float64  `rosname:"K"`
	R               [9]float64  `rosname:"R"`
	P               [12]float64 `rosname:"P"`
	BinningX        uint32
	BinningY        uint32
	Roi             RegionOfInterest
}

type ChannelFloat32

type ChannelFloat32 struct {
	msg.Package `ros:"sensor_msgs"`
	Name        string
	Values      []float32
}

type CompressedImage

type CompressedImage struct {
	msg.Package `ros:"sensor_msgs"`
	Header      std_msgs.Header
	Format      string
	Data        []uint8
}

type FluidPressure

type FluidPressure struct {
	msg.Package   `ros:"sensor_msgs"`
	Header        std_msgs.Header
	FluidPressure float64
	Variance      float64
}

type Illuminance

type Illuminance struct {
	msg.Package `ros:"sensor_msgs"`
	Header      std_msgs.Header
	Illuminance float64
	Variance    float64
}

type Image

type Image struct {
	msg.Package `ros:"sensor_msgs"`
	Header      std_msgs.Header
	Height      uint32
	Width       uint32
	Encoding    string
	IsBigendian uint8
	Step        uint32
	Data        []uint8
}

type Imu

type Imu struct {
	msg.Package                  `ros:"sensor_msgs"`
	Header                       std_msgs.Header
	Orientation                  geometry_msgs.Quaternion
	OrientationCovariance        [9]float64
	AngularVelocity              geometry_msgs.Vector3
	AngularVelocityCovariance    [9]float64
	LinearAcceleration           geometry_msgs.Vector3
	LinearAccelerationCovariance [9]float64
}

type JointState

type JointState struct {
	msg.Package `ros:"sensor_msgs"`
	Header      std_msgs.Header
	Name        []string
	Position    []float64
	Velocity    []float64
	Effort      []float64
}

type Joy

type Joy struct {
	msg.Package `ros:"sensor_msgs"`
	Header      std_msgs.Header
	Axes        []float32
	Buttons     []int32
}

type JoyFeedback

type JoyFeedback struct {
	msg.Package     `ros:"sensor_msgs"`
	msg.Definitions `ros:"uint8 TYPE_LED=0,uint8 TYPE_RUMBLE=1,uint8 TYPE_BUZZER=2"`
	Type            uint8
	Id              uint8
	Intensity       float32
}

type JoyFeedbackArray

type JoyFeedbackArray struct {
	msg.Package `ros:"sensor_msgs"`
	Array       []JoyFeedback
}

type LaserEcho

type LaserEcho struct {
	msg.Package `ros:"sensor_msgs"`
	Echoes      []float32
}

type LaserScan

type LaserScan struct {
	msg.Package    `ros:"sensor_msgs"`
	Header         std_msgs.Header
	AngleMin       float32
	AngleMax       float32
	AngleIncrement float32
	TimeIncrement  float32
	ScanTime       float32
	RangeMin       float32
	RangeMax       float32
	Ranges         []float32
	Intensities    []float32
}

type MagneticField

type MagneticField struct {
	msg.Package             `ros:"sensor_msgs"`
	Header                  std_msgs.Header
	MagneticField           geometry_msgs.Vector3
	MagneticFieldCovariance [9]float64
}

type MultiDOFJointState

type MultiDOFJointState struct {
	msg.Package `ros:"sensor_msgs"`
	Header      std_msgs.Header
	JointNames  []string
	Transforms  []geometry_msgs.Transform
	Twist       []geometry_msgs.Twist
	Wrench      []geometry_msgs.Wrench
}

type MultiEchoLaserScan

type MultiEchoLaserScan struct {
	msg.Package    `ros:"sensor_msgs"`
	Header         std_msgs.Header
	AngleMin       float32
	AngleMax       float32
	AngleIncrement float32
	TimeIncrement  float32
	ScanTime       float32
	RangeMin       float32
	RangeMax       float32
	Ranges         []LaserEcho
	Intensities    []LaserEcho
}
type NavSatFix struct {
	msg.Package            `ros:"sensor_msgs"`
	msg.Definitions        `` /* 143-byte string literal not displayed */
	Header                 std_msgs.Header
	Status                 NavSatStatus
	Latitude               float64
	Longitude              float64
	Altitude               float64
	PositionCovariance     [9]float64
	PositionCovarianceType uint8
}
type NavSatStatus struct {
	msg.Package     `ros:"sensor_msgs"`
	msg.Definitions `` /* 187-byte string literal not displayed */
	Status          int8
	Service         uint16
}

type PointCloud

type PointCloud struct {
	msg.Package `ros:"sensor_msgs"`
	Header      std_msgs.Header
	Points      []geometry_msgs.Point32
	Channels    []ChannelFloat32
}

type PointCloud2

type PointCloud2 struct {
	msg.Package `ros:"sensor_msgs"`
	Header      std_msgs.Header
	Height      uint32
	Width       uint32
	Fields      []PointField
	IsBigendian bool
	PointStep   uint32
	RowStep     uint32
	Data        []uint8
	IsDense     bool
}

type PointField

type PointField struct {
	msg.Package     `ros:"sensor_msgs"`
	msg.Definitions `ros:"uint8 INT8=1,uint8 UINT8=2,uint8 INT16=3,uint8 UINT16=4,uint8 INT32=5,uint8 UINT32=6,uint8 FLOAT32=7,uint8 FLOAT64=8"`
	Name            string
	Offset          uint32
	Datatype        uint8
	Count           uint32
}

type Range

type Range struct {
	msg.Package     `ros:"sensor_msgs"`
	msg.Definitions `ros:"uint8 ULTRASOUND=0,uint8 INFRARED=1"`
	Header          std_msgs.Header
	RadiationType   uint8
	FieldOfView     float32
	MinRange        float32
	MaxRange        float32
	Range           float32
}

type RegionOfInterest

type RegionOfInterest struct {
	msg.Package `ros:"sensor_msgs"`
	XOffset     uint32
	YOffset     uint32
	Height      uint32
	Width       uint32
	DoRectify   bool
}

type RelativeHumidity

type RelativeHumidity struct {
	msg.Package      `ros:"sensor_msgs"`
	Header           std_msgs.Header
	RelativeHumidity float64
	Variance         float64
}

type SetCameraInfo

type SetCameraInfo struct {
	msg.Package `ros:"sensor_msgs"`
	SetCameraInfoReq
	SetCameraInfoRes
}

type SetCameraInfoReq

type SetCameraInfoReq struct {
	msg.Package `ros:"sensor_msgs"`
	CameraInfo  CameraInfo
}

type SetCameraInfoRes

type SetCameraInfoRes struct {
	msg.Package   `ros:"sensor_msgs"`
	Success       bool
	StatusMessage string
}

type Temperature

type Temperature struct {
	msg.Package `ros:"sensor_msgs"`
	Header      std_msgs.Header
	Temperature float64
	Variance    float64
}

type TimeReference

type TimeReference struct {
	msg.Package `ros:"sensor_msgs"`
	Header      std_msgs.Header
	TimeRef     time.Time
	Source      string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL