Struct PacketSourceOptions¶
Defined in File open_source.h
Inheritance Relationships¶
Derived Types¶
private ouster::sdk::pcap::PcapPacketSourceOptionsStruct PcapPacketSourceOptionsprivate ouster::sdk::sensor::SensorPacketSourceOptionsStruct SensorPacketSourceOptions
Struct Documentation¶
-
struct PacketSourceOptions¶
All possible configuration options for packet sources available through open_packet_source.
Subclassed by ouster::sdk::pcap::PcapPacketSourceOptions, ouster::sdk::sensor::SensorPacketSourceOptions
Public Functions
-
explicit PacketSourceOptions(FrameSetSourceOptions &options)¶
Construct given the options in a FrameSetSourceOptions.
- Parameters:
options[in] options
-
PacketSourceOptions()¶
Default constructor.
-
void check(const char *source_type) const¶
Check if any parameters are unused.
- Parameters:
source_type[in] name of source type
- Throws:
std::runtime_error – if any parameters are unused
Public Members
-
impl::Parameter<std::string> extrinsics_file¶
file to load extrinsics from
-
impl::Parameter<std::vector<Eigen::Matrix<double, 4, 4, Eigen::RowMajor>>> extrinsics¶
list of extrinsics matrices to apply to the sensor with the same index, overrides any extrinsics loaded from file
-
impl::Parameter<bool> soft_id_check = false¶
If true, accept packets/frames that don’t match the init_id/sn of the metadata.
-
impl::Parameter<std::vector<std::string>> meta¶
optional list of metadata files to load with some formats, if not provided files are attempted to be found automatically
-
impl::Parameter<nonstd::optional<uint16_t>> lidar_port¶
if set, the lidar udp port to use with the sensor
-
impl::Parameter<nonstd::optional<uint16_t>> imu_port¶
if set, the imu udp port to use with the sensor
-
impl::Parameter<float> config_timeout = 45.0¶
timeout for http endpoints while configuring the sensor
-
impl::Parameter<float> timeout = 1.0¶
timeout for receiving packets from the sensor
-
impl::Parameter<float> buffer_time_sec = 0.0¶
If > 0.0 buffer packets for this long internally Useful if you may not be retrieving packets from the source consistently.
-
impl::Parameter<bool> index = false¶
if true, ensure that this file is indexed, indexing in place if necessary
-
impl::Parameter<std::vector<core::SensorInfo>> sensor_info¶
Override sensor info. If provided used instead of talking to the sensor.
-
impl::Parameter<bool> do_not_reinitialize = false¶
If true, do not change any settings on the sensor or reinitialize it.
-
impl::Parameter<bool> no_auto_udp_dest = false¶
If true, do not change the udp_dest configuration option on the sensor.
-
impl::Parameter<std::vector<core::SensorConfig>> sensor_config¶
Configuration to apply to the sensors.
-
impl::Parameter<bool> reuse_ports = false¶
if true, enable reuse ports on the sensor client sockets this enables multiple programs on the same computer to bind these ports which is useful for multi/broadcast but can lead to conflicts otherwise
-
impl::Parameter<uint32_t> rcvbuf_size = 1024 * 1024¶
Receive buffer size in bytes.
-
explicit PacketSourceOptions(FrameSetSourceOptions &options)¶