-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3168e5
commit fe1ac31
Showing
16 changed files
with
413 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
GET /api/v1/sensor/metadata HTTP/1.1 | ||
Host: 192.168.1.137 | ||
Accept: */* | ||
|
||
HTTP/1.1 200 OK | ||
content-type: application/json | ||
content-length: 2224 | ||
Connection: close | ||
|
||
{"lidar_data_format": {"pixels_per_column": 16, "columns_per_packet": 16, "udp_profile_imu": "LEGACY", "pixel_shift_by_row": [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4], "udp_profile_lidar": "RNG19_RFL8_SIG16_NIR16", "columns_per_frame": 1024, "column_window": [0, 1023]}, "calibration_status": {"reflectivity": {"valid": false, "timestamp": ""}}, "config_params": {"udp_port_imu": 7503, "sync_pulse_out_angle": 360, "udp_profile_lidar": "RNG19_RFL8_SIG16_NIR16", "sync_pulse_out_polarity": "ACTIVE_HIGH", "nmea_leap_seconds": 0, "operating_mode": "NORMAL", "sync_pulse_in_polarity": "ACTIVE_HIGH", "sync_pulse_out_frequency": 1, "nmea_ignore_valid_char": 0, "sync_pulse_out_pulse_width": 10, "nmea_in_polarity": "ACTIVE_HIGH", "udp_port_lidar": 7502, "columns_per_packet": 16, "udp_dest": "192.168.1.113", "multipurpose_io_mode": "OFF", "timestamp_mode": "TIME_FROM_INTERNAL_OSC", "nmea_baud_rate": "BAUD_9600", "azimuth_window": [0, 360000], "phase_lock_enable": false, "lidar_mode": "1024x10", "udp_profile_imu": "LEGACY", "phase_lock_offset": 0, "signal_multiplier": 1}, "beam_intrinsics": {"beam_altitude_angles": [14.412000000000001, 12.271000000000001, 10.167999999999999, 8.0760000000000005, 5.9880000000000004, 3.9129999999999998, 1.825, -0.254, -2.339, -4.4160000000000004, -6.508, -8.6080000000000005, -10.711, -12.83, -14.976000000000001, -17.18], "beam_azimuth_angles": [0.89200000000000002, 0.91900000000000004, 0.92000000000000004, 0.93600000000000005, 0.95699999999999996, 0.98099999999999998, 1.01, 1.0249999999999999, 1.0469999999999999, 1.0860000000000001, 1.1200000000000001, 1.139, 1.1930000000000001, 1.212, 1.264, 1.3280000000000001], "lidar_origin_to_beam_origin_mm": 12.163}, "sensor_info": {"build_rev": "v2.4.0", "build_date": "2022-09-21T17:47:45Z", "prod_pn": "840-101855-02", "prod_line": "OS-1-16-A2", "prod_sn": "991940000262", "image_rev": "ousteros-image-prod-aries-v2.4.0+20220921174636", "status": "RUNNING", "initialization_id": 2573177}, "lidar_intrinsics": {"lidar_to_sensor_transform": [-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 36.18, 0, 0, 0, 1]}, "imu_intrinsics": {"imu_to_sensor_transform": [1, 0, 0, 6.2530000000000001, 0, 1, 0, -11.775, 0, 0, 1, 7.6449999999999996, 0, 0, 0, 1]}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef OUSTER_HTTP_H | ||
#define OUSTER_HTTP_H | ||
#include <stdio.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#define OUSTER_HTTP_GET_METADATA "/api/v1/sensor/metadata" | ||
#define OUSTER_HTTP_GET_FIRMWARE "/api/v1/system/firmware" | ||
|
||
void ouster_http_request(int sock, char const *host, char const *path, ouster_vec_t *v); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // OUSTER_CLIENT_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#ifndef OUSTER_VEC_H | ||
#define OUSTER_VEC_H | ||
#include <stdio.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" | ||
{ | ||
#endif | ||
|
||
|
||
#define OUSTER_OFFSET(o, offset) (void*)(((uintptr_t)(o)) + ((uintptr_t)(offset))) | ||
|
||
typedef struct | ||
{ | ||
int cap; | ||
int count; | ||
int esize; | ||
void * data; | ||
} ouster_vec_t; | ||
|
||
void ouster_vec_init(ouster_vec_t * v, int esize, int cap); | ||
|
||
void ouster_vec_append(ouster_vec_t * v, void const * data, int n, float factor); | ||
|
||
void test_ouster_vec(); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // OUSTER_VEC_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.