Classes | Namespaces | Macros | Functions
printable.h File Reference
#include <iomanip>
#include <iostream>
#include <map>
#include <vector>
#include <Eigen/Geometry>
#include <kdl/frames.hpp>
Include dependency graph for printable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  exotica::Printable
 

Namespaces

 exotica
 

Macros

#define __PRETTY_FUNCTION__   __func__
 A set of debugging tools: basically these provide easy ways of checking code execution through std::cout prints. More...
 
#define CHECK_EXECUTION
 
#define ERROR(x)
 
#define HIGHLIGHT(x)   std::cout << "\033[1;32m[EXOTica]:\033[0m \033[36m" << x << "\033[0m\n";
 
#define HIGHLIGHT_NAMED(name, x)   std::cout << "\033[1;32m[EXOTica]:\033[0m \033[35m[" << name << "]\033[0m \033[36m" << x << "\033[0m\n";
 
#define INDICATE_FAILURE   std::cerr << "\033[1;32m[EXOTica]:\033[0m \033[1;31mFailed in " << __FILE__ << " at line " << __LINE__ << " within function " << __PRETTY_FUNCTION__ << ".\033[0m\n";
 With endline. More...
 
#define INFO(x)
 
#define INFO_NAMED(name, x)   std::cout << "\033[1;32m[EXOTica]:\033[0m \033[35m[" << name << "]\033[0m " << x << "\n";
 
#define INFO_PLAIN(x)   std::cout << x << "\n";
 
#define WARNING(x)   std::cout << "\033[1;32m[EXOTica]:\033[0m \033[33mWarning in " << __PRETTY_FUNCTION__ << ": " << x << "\033[0m\n";
 With endline. More...
 
#define WARNING_NAMED(name, x)   std::cout << "\033[1;32m[EXOTica]:\033[0m \033[35m[" << name << "]\033[0m \033[33m" << x << "\033[0m\n";
 

Functions

std::ostream & exotica::operator<< (std::ostream &os, const Printable &s)
 
template<typename T >
std::ostream & exotica::operator<< (std::ostream &os, const std::vector< T > &s)
 
template<typename I , typename T >
std::ostream & exotica::operator<< (std::ostream &os, const std::map< I, T > &s)
 
void exotica::PrintDimensions (const std::string &name, const Eigen::Ref< const Eigen::MatrixXd > m)
 
std::string exotica::ToString (const KDL::Frame &s)
 
std::string exotica::ToString (const Eigen::Isometry3d &s)
 

Macro Definition Documentation

#define __PRETTY_FUNCTION__   __func__

A set of debugging tools: basically these provide easy ways of checking code execution through std::cout prints.

Definition at line 43 of file printable.h.

#define CHECK_EXECUTION

Definition at line 54 of file printable.h.

#define ERROR (   x)
Value:
std::cerr << "\033[1;32m[EXOTica]:\033[0m \033[1;31mFailed in " << __FILE__ << " at line " << __LINE__ << " within function " << __PRETTY_FUNCTION__ << ".\n" \
<< x << "\033[0m\n";
double x
#define __PRETTY_FUNCTION__
A set of debugging tools: basically these provide easy ways of checking code execution through std::c...
Definition: printable.h:43

Definition at line 57 of file printable.h.

#define HIGHLIGHT (   x)    std::cout << "\033[1;32m[EXOTica]:\033[0m \033[36m" << x << "\033[0m\n";

Definition at line 61 of file printable.h.

#define HIGHLIGHT_NAMED (   name,
  x 
)    std::cout << "\033[1;32m[EXOTica]:\033[0m \033[35m[" << name << "]\033[0m \033[36m" << x << "\033[0m\n";

Definition at line 62 of file printable.h.

#define INDICATE_FAILURE   std::cerr << "\033[1;32m[EXOTica]:\033[0m \033[1;31mFailed in " << __FILE__ << " at line " << __LINE__ << " within function " << __PRETTY_FUNCTION__ << ".\033[0m\n";

With endline.

Definition at line 55 of file printable.h.

#define INFO (   x)

Definition at line 59 of file printable.h.

#define INFO_NAMED (   name,
  x 
)    std::cout << "\033[1;32m[EXOTica]:\033[0m \033[35m[" << name << "]\033[0m " << x << "\n";

Definition at line 64 of file printable.h.

#define INFO_PLAIN (   x)    std::cout << x << "\n";

Definition at line 65 of file printable.h.

#define WARNING (   x)    std::cout << "\033[1;32m[EXOTica]:\033[0m \033[33mWarning in " << __PRETTY_FUNCTION__ << ": " << x << "\033[0m\n";

With endline.

Definition at line 56 of file printable.h.

#define WARNING_NAMED (   name,
  x 
)    std::cout << "\033[1;32m[EXOTica]:\033[0m \033[35m[" << name << "]\033[0m \033[33m" << x << "\033[0m\n";

Definition at line 63 of file printable.h.



exotica_core
Author(s): Yiming Yang, Michael Camilleri
autogenerated on Sat Apr 10 2021 02:34:49