Drake
call_matlab.h File Reference
#include <string>
#include <vector>
#include "drake/common/eigen_types.h"
#include "drake/common/proto/matlab_rpc.pb.h"
Include dependency graph for call_matlab.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MatlabRemoteVariable
 Holds a reference to a variable stored on the matlab client, which can be passed back into a future lcm_call_matlab call. More...
 

Namespaces

 drake
 
 drake::common
 
 drake::common::internal
 

Functions

void ToMatlabArray (const MatlabRemoteVariable &var, MatlabArray *matlab_array)
 
void ToMatlabArray (double var, MatlabArray *matlab_array)
 
void ToMatlabArray (const Eigen::Ref< const Eigen::Matrix< bool, Eigen::Dynamic, Eigen::Dynamic >> &mat, MatlabArray *matlab_array)
 
void ToMatlabArray (const Eigen::Ref< const Eigen::MatrixXd > &mat, MatlabArray *matlab_array)
 
void ToMatlabArray (const std::string &str, MatlabArray *matlab_array)
 
void AssembleCallMatlabMsg (MatlabRPC *)
 
template<typename T , typename... Types>
void AssembleCallMatlabMsg (MatlabRPC *msg, T first, Types...args)
 
void PublishCallMatlab (const MatlabRPC &msg)
 
template<typename... Types>
MatlabRemoteVariable CallMatlabSingleOutput (const std::string &function_name, Types...args)
 Special cases the call with one output. More...
 
template<typename... Types>
std::vector< MatlabRemoteVariable > CallMatlab (int num_outputs, const std::string &function_name, Types...args)
 Invokes a mexCallMATLAB call on the remote client. More...
 
template<typename... Types>
void CallMatlab (const std::string &function_name, Types...args)
 Special cases the call with zero outputs, since it's so common. More...
 
template<typename T >
MatlabRemoteVariable NewRemoteVariable (T value)
 Creates a new remote variable with the corresponding value set. More...