#include <cerrno>#include <chrono>#include <cstdio>#include <cstring>#include <iostream>#include <memory>#include <vector>#include <algorithm>#include <arpa/inet.h>#include <netdb.h>#include <sys/socket.h>#include <sys/types.h>#include <unistd.h>#include "ouster/os1.h"
Go to the source code of this file.
Classes | |
| struct | ouster::OS1::client |
Namespaces | |
| ouster | |
| ouster::OS1 | |
Typedefs | |
| using | ouster::OS1::ns = std::chrono::nanoseconds |
Functions | |
| static int | ouster::OS1::cfg_socket (const char *addr) |
| std::shared_ptr< client > | ouster::OS1::init_client (const std::string &hostname, const std::string &udp_dest_host, int lidar_port, int imu_port) |
| client_state | ouster::OS1::poll_client (const client &cli) |
| bool | ouster::OS1::read_imu_packet (const client &cli, uint8_t *buf) |
| bool | ouster::OS1::read_lidar_packet (const client &cli, uint8_t *buf) |
| static bool | ouster::OS1::recv_fixed (int fd, void *buf, size_t len) |
| void | ouster::OS1::set_advanced_params (std::string operation_mode_str, std::string pulse_mode_str, bool window_rejection) |
| static int | ouster::OS1::udp_data_socket (int port) |
Variables | |
| static OperationMode | ouster::OS1::_operation_mode = ouster::OS1::MODE_1024x10 |
| static std::string | ouster::OS1::_operation_mode_str = "" |
| static PulseMode | ouster::OS1::_pulse_mode = ouster::OS1::PULSE_STANDARD |
| static std::string | ouster::OS1::_pulse_mode_str = "" |
| static bool | ouster::OS1::_window_rejection = true |
| static std::string | ouster::OS1::_window_rejection_str = "" |