Skip to content

VehicleRoi (UORB message)

Vehicle Region Of Interest (ROI).

TOPICS: vehicle_roi

Fields

NameTypeUnit [Frame]Range/EnumDescription
timestampuint64time since system start (microseconds)
modeuint8ROI mode (see above)
latfloat64Latitude to point to
lonfloat64Longitude to point to
altfloat32Altitude to point to
roll_offsetfloat32angle offset in rad
pitch_offsetfloat32angle offset in rad
yaw_offsetfloat32angle offset in rad

Constants

NameTypeValueDescription
ROI_NONEuint80No region of interest
ROI_WPNEXTuint81Point toward next MISSION with optional offset
ROI_WPINDEXuint82Point toward given MISSION
ROI_LOCATIONuint83Point toward fixed location
ROI_TARGETuint84Point toward target
ROI_ENUM_ENDuint85

Source Message

Source file (GitHub)

Click here to see original file
c
# Vehicle Region Of Interest (ROI)

uint64 timestamp			# time since system start (microseconds)

uint8 ROI_NONE = 0			# No region of interest
uint8 ROI_WPNEXT = 1			# Point toward next MISSION with optional offset
uint8 ROI_WPINDEX = 2			# Point toward given MISSION
uint8 ROI_LOCATION = 3			# Point toward fixed location
uint8 ROI_TARGET = 4			# Point toward target
uint8 ROI_ENUM_END = 5

uint8 mode          # ROI mode (see above)

float64 lat			    # Latitude to point to
float64 lon			    # Longitude to point to
float32 alt			    # Altitude to point to

# additional angle offsets to next waypoint (only used with ROI_WPNEXT)
float32 roll_offset		# angle offset in rad
float32 pitch_offset		# angle offset in rad
float32 yaw_offset		# angle offset in rad