Classes | |
class | roboptim::visualization::gnuplot::Command |
Gnuplot command. More... | |
class | roboptim::visualization::Gnuplot |
Gnuplot script. More... | |
Typedefs | |
typedef Function::discreteInterval_t | roboptim::visualization::gnuplot::discreteInterval_t |
Import discrete interval type from function. | |
typedef DifferentiableFunction::argument_t | roboptim::visualization::gnuplot::argument_t |
Import discrete interval type from function. | |
Functions | |
ROBOPTIM_DLLAPI Command | roboptim::visualization::gnuplot::comment (const char *) throw () |
Make a Gnuplot comment. | |
ROBOPTIM_DLLAPI Command | roboptim::visualization::gnuplot::set (const char *var, const char *val="") throw () |
Make a Gnuplot set command. | |
ROBOPTIM_DLLAPI Command | roboptim::visualization::gnuplot::unset (const char *var) throw () |
Make a Gnuplot unset command. | |
ROBOPTIM_DLLAPI Command | roboptim::visualization::gnuplot::show (const char *var) throw () |
Make a Gnuplot show command. | |
ROBOPTIM_DLLAPI Command | roboptim::visualization::gnuplot::clear () throw () |
Make a Gnuplot clear command. | |
ROBOPTIM_DLLAPI Command | roboptim::visualization::gnuplot::pwd () throw () |
Make a Gnuplot pwdcommand. | |
ROBOPTIM_DLLAPI Command | roboptim::visualization::gnuplot::quit () throw () |
Make a Gnuplot quit command. | |
ROBOPTIM_DLLAPI Command | roboptim::visualization::gnuplot::replot () throw () |
Make a Gnuplot replot command. | |
ROBOPTIM_DLLAPI Command | roboptim::visualization::gnuplot::reread () throw () |
Make a Gnuplot reread command. | |
ROBOPTIM_DLLAPI Command | roboptim::visualization::gnuplot::reset () throw () |
Make a Gnuplot reset command. | |
ROBOPTIM_DLLAPI Command | roboptim::visualization::gnuplot::cd (const char *dir) throw () |
Make a Gnuplot cd command. | |
ROBOPTIM_DLLAPI Command | roboptim::visualization::gnuplot::help (const char *topic="") throw () |
Make a Gnuplot help command. | |
Command | roboptim::visualization::gnuplot::plot_jac (const DifferentiableFunction &f, const DifferentiableFunction::argument_t &arg) |
Plot the Jacobian with Gnuplot. | |
template<typename T > | |
Command | roboptim::visualization::gnuplot::plot (const GenericFunction< T > &f, discreteInterval_t interval) |
Plot a 1D function with Gnuplot. | |
template<typename T > | |
Command | roboptim::visualization::gnuplot::plot_xy (const GenericFunction< T > &f, discreteInterval_t interval) |
Plot a 2D function with Gnuplot. | |
double | roboptim::visualization::normalize (const double &x) |
Normalize floating point number output. | |
Eigen::MatrixXd | roboptim::visualization::normalize (const Eigen::MatrixXd &x) |
Apply normalize to each element of a matrix. | |
template<typename T > | |
T | roboptim::visualization::normalize (const T &x) |
Apply normalize to each element of a container. | |
template<typename T > | |
Gnuplot & | roboptim::visualization::operator<< (Gnuplot &gp, T t) |
Override operator<< to handle Gnuplot command insertion. |
typedef DifferentiableFunction::argument_t roboptim::visualization::gnuplot::argument_t |
Import discrete interval type from function.
typedef Function::discreteInterval_t roboptim::visualization::gnuplot::discreteInterval_t |
Import discrete interval type from function.
ROBOPTIM_DLLAPI Command roboptim::visualization::gnuplot::cd | ( | const char * | dir | ) | throw () |
Make a Gnuplot cd command.
Make a Gnuplot cd command (change current directory).
dir | new directory |
ROBOPTIM_DLLAPI Command roboptim::visualization::gnuplot::clear | ( | ) | throw () |
Command roboptim::visualization::gnuplot::comment | ( | const char * | content | ) | throw () |
Make a Gnuplot comment.
Referenced by roboptim::visualization::Gnuplot::Gnuplot().
ROBOPTIM_DLLAPI Command roboptim::visualization::gnuplot::help | ( | const char * | topic = "" | ) | throw () |
double roboptim::visualization::normalize | ( | const double & | x | ) | [inline] |
Normalize floating point number output.
Normalization is done on all displayed floating point numbers to get a consistent output.
Referenced by roboptim::visualization::normalize(), roboptim::visualization::gnuplot::plot(), roboptim::visualization::gnuplot::plot_jac(), and roboptim::visualization::gnuplot::plot_xy().
Eigen::MatrixXd roboptim::visualization::normalize | ( | const Eigen::MatrixXd & | x | ) | [inline] |
Apply normalize to each element of a matrix.
References roboptim::visualization::normalize().
T roboptim::visualization::normalize | ( | const T & | x | ) |
Apply normalize to each element of a container.
Gnuplot& roboptim::visualization::operator<< | ( | Gnuplot & | gp, |
T | t | ||
) |
Command roboptim::visualization::gnuplot::plot | ( | const GenericFunction< T > & | f, |
discreteInterval_t | interval | ||
) |
Plot a 1D function with Gnuplot.
Plot a 1D function in Gnuplot on a specific interval. X axis is the function's argument, Y axis is result.
f | function to be plotted |
interval | plot interval |
References roboptim::GenericFunction< T >::getName(), roboptim::GenericFunction< T >::inputSize(), roboptim::visualization::normalize(), and roboptim::GenericFunction< T >::outputSize().
Command roboptim::visualization::gnuplot::plot_jac | ( | const DifferentiableFunction & | f, |
const DifferentiableFunction::argument_t & | arg | ||
) |
Plot the Jacobian with Gnuplot.
Plot the Jacobian of a differentiable function with Gnuplot.
f | differentiable function whose Jacobian will be plotted |
arg | optimization parameters of the point to plot |
References roboptim::GenericFunction< T >::getName(), roboptim::GenericDifferentiableFunction< T >::jacobian(), and roboptim::visualization::normalize().
Command roboptim::visualization::gnuplot::plot_xy | ( | const GenericFunction< T > & | f, |
discreteInterval_t | interval | ||
) |
Plot a 2D function with Gnuplot.
Plot a 2D function in Gnuplot on a specific interval. X and Y axises are the function result, the original arguments are not displayed.
f | function to be plotted |
interval | plot interval |
References roboptim::GenericFunction< T >::getName(), roboptim::GenericFunction< T >::inputSize(), roboptim::visualization::normalize(), and roboptim::GenericFunction< T >::outputSize().
ROBOPTIM_DLLAPI Command roboptim::visualization::gnuplot::pwd | ( | ) | throw () |
ROBOPTIM_DLLAPI Command roboptim::visualization::gnuplot::quit | ( | ) | throw () |
ROBOPTIM_DLLAPI Command roboptim::visualization::gnuplot::replot | ( | ) | throw () |
ROBOPTIM_DLLAPI Command roboptim::visualization::gnuplot::reread | ( | ) | throw () |
ROBOPTIM_DLLAPI Command roboptim::visualization::gnuplot::reset | ( | ) | throw () |
Command roboptim::visualization::gnuplot::set | ( | const char * | var, |
const char * | val = "" |
||
) | throw () |
Make a Gnuplot set command.
Make a Gnuplot set command (assign a new value to a variable in Gnuplot).
var | variable that will be set |
val | new variable value |
Referenced by roboptim::visualization::Gnuplot::make_interactive_gnuplot().
Command roboptim::visualization::gnuplot::show | ( | const char * | var | ) | throw () |
Command roboptim::visualization::gnuplot::unset | ( | const char * | var | ) | throw () |
Make a Gnuplot unset command.
Make a Gnuplot unset command (destroy a variable).
var | variable that will be unset |