Classes | Typedefs | Functions
rs-ar-advanced.cpp File Reference
#include <librealsense2/rs.hpp>
#include <librealsense2/rsutil.h>
#include <array>
#include <cmath>
#include <cstring>
#include <iostream>
#include <fstream>
#include <vector>
#include "example.hpp"
Include dependency graph for rs-ar-advanced.cpp:

Go to the source code of this file.


struct  pixel
struct  point3d


typedef std::array< point3d, 4 > object


std::vector< uint8_tbytes_from_raw_file (const std::string &filename)
static object convert_object_coordinates (const object &obj, const rs2_pose &object_pose)
static rs2_pose identity_pose ()
int main (int argc, char *argv[])
static rs2_pose pose_inverse (const rs2_pose &p)
static rs2_pose pose_multiply (const rs2_pose &ref2_in_ref1, const rs2_pose &ref3_in_ref2)
static rs2_vector pose_transform_point (const rs2_pose &pose, const rs2_vector &p)
static rs2_quaternion quaternion_conjugate (const rs2_quaternion &q)
static rs2_quaternion quaternion_multiply (const rs2_quaternion &a, const rs2_quaternion &b)
static rs2_vector quaternion_rotate_vector (const rs2_quaternion &q, const rs2_vector &v)
static std::vector< point3draster_line (const point3d &a, const point3d &b, float step)
void raw_file_from_bytes (const std::string &filename, const std::vector< uint8_t > bytes)
static void render_line (const std::vector< pixel > &line, int color_code)
static void render_text (int win_height, const std::string &text)
static rs2_pose reset_object_pose (const rs2_pose &device_pose_in_world=identity_pose())
static rs2_vector vector_addition (const rs2_vector &a, const rs2_vector &b)
static rs2_vector vector_negate (const rs2_vector &v)

Typedef Documentation

typedef GLuint object

Definition at line 33 of file rs-ar-advanced.cpp.

Function Documentation

std::vector< uint8_t > bytes_from_raw_file ( const std::string filename)

Definition at line 416 of file rs-ar-advanced.cpp.

object convert_object_coordinates ( const object obj,
const rs2_pose object_pose 

Definition at line 336 of file rs-ar-advanced.cpp.

rs2_pose identity_pose ( )

Definition at line 251 of file rs-ar-advanced.cpp.

int main ( int  argc,
char *  argv[] 

Definition at line 55 of file rs-ar-advanced.cpp.

rs2_pose pose_inverse ( const rs2_pose p)

Definition at line 283 of file rs-ar-advanced.cpp.

rs2_pose pose_multiply ( const rs2_pose ref2_in_ref1,
const rs2_pose ref3_in_ref2 

Definition at line 291 of file rs-ar-advanced.cpp.

rs2_vector pose_transform_point ( const rs2_pose pose,
const rs2_vector p 

Definition at line 299 of file rs-ar-advanced.cpp.

rs2_quaternion quaternion_conjugate ( const rs2_quaternion q)

Definition at line 321 of file rs-ar-advanced.cpp.

rs2_quaternion quaternion_multiply ( const rs2_quaternion a,
const rs2_quaternion b 

Definition at line 304 of file rs-ar-advanced.cpp.

rs2_vector quaternion_rotate_vector ( const rs2_quaternion q,
const rs2_vector v 

Definition at line 314 of file rs-ar-advanced.cpp.

std::vector< point3d > raster_line ( const point3d a,
const point3d b,
float  step 

Definition at line 349 of file rs-ar-advanced.cpp.

void raw_file_from_bytes ( const std::string filename,
const std::vector< uint8_t bytes 

Definition at line 408 of file rs-ar-advanced.cpp.

void render_line ( const std::vector< pixel > &  line,
int  color_code 

Definition at line 374 of file rs-ar-advanced.cpp.

void render_text ( int  win_height,
const std::string text 

Definition at line 397 of file rs-ar-advanced.cpp.

rs2_pose reset_object_pose ( const rs2_pose device_pose_in_world = identity_pose())

Definition at line 265 of file rs-ar-advanced.cpp.

rs2_vector vector_addition ( const rs2_vector a,
const rs2_vector b 

Definition at line 326 of file rs-ar-advanced.cpp.

rs2_vector vector_negate ( const rs2_vector v)

Definition at line 331 of file rs-ar-advanced.cpp.

Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:28