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

Go to the source code of this file.

Classes

struct  pixel
 
struct  point3d
 

Typedefs

typedef std::array< point3d, 4 > object
 

Functions

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)
 
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 std::array<point3d, 4> object

Definition at line 31 of file rs-ar-basic.cpp.

Function Documentation

object convert_object_coordinates ( const object obj,
const rs2_pose object_pose 
)
static

Definition at line 275 of file rs-ar-basic.cpp.

rs2_pose identity_pose ( )
static

Definition at line 190 of file rs-ar-basic.cpp.

int main ( int  argc,
char *  argv[] 
)

Definition at line 50 of file rs-ar-basic.cpp.

rs2_pose pose_inverse ( const rs2_pose p)
static

Definition at line 222 of file rs-ar-basic.cpp.

rs2_pose pose_multiply ( const rs2_pose ref2_in_ref1,
const rs2_pose ref3_in_ref2 
)
static

Definition at line 230 of file rs-ar-basic.cpp.

rs2_vector pose_transform_point ( const rs2_pose pose,
const rs2_vector p 
)
static

Definition at line 238 of file rs-ar-basic.cpp.

rs2_quaternion quaternion_conjugate ( const rs2_quaternion q)
static

Definition at line 260 of file rs-ar-basic.cpp.

rs2_quaternion quaternion_multiply ( const rs2_quaternion a,
const rs2_quaternion b 
)
static

Definition at line 243 of file rs-ar-basic.cpp.

rs2_vector quaternion_rotate_vector ( const rs2_quaternion q,
const rs2_vector v 
)
static

Definition at line 253 of file rs-ar-basic.cpp.

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

Definition at line 288 of file rs-ar-basic.cpp.

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

Definition at line 313 of file rs-ar-basic.cpp.

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

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

rs2_pose reset_object_pose ( const rs2_pose device_pose_in_world = identity_pose())
static

Definition at line 204 of file rs-ar-basic.cpp.

rs2_vector vector_addition ( const rs2_vector a,
const rs2_vector b 
)
static

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

rs2_vector vector_negate ( const rs2_vector v)
static

Definition at line 270 of file rs-ar-basic.cpp.



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