Public Member Functions | Private Member Functions | Private Attributes | List of all members
exotica::VisualizationMeshcat Class Reference

#include <visualization_meshcat.h>

Inheritance diagram for exotica::VisualizationMeshcat:
Inheritance graph
[legend]

Public Member Functions

void Delete (const std::string &path="")
 
void DisplayScene (bool use_mesh_materials=true)
 
void DisplayState (Eigen::VectorXdRefConst state, double t=0.0)
 
void DisplayTrajectory (Eigen::MatrixXdRefConst trajectory, double dt=1.0)
 
std::string GetFileURL ()
 
std::string GetWebURL ()
 
void Initialize (bool use_mesh_materials)
 
void SetProperty (const std::string &path, const std::string &property, const double &value)
 
void SetProperty (const std::string &path, const std::string &property, const std::string &value)
 
void SetProperty (const std::string &path, const std::string &property, const bool &value)
 
void SetProperty (const std::string &path, const std::string &property, const Eigen::Vector3d &value)
 
void SetProperty (const std::string &path, const std::string &property, const Eigen::Vector4d &value)
 
 VisualizationMeshcat (ScenePtr scene, const std::string &url, bool use_mesh_materials=true, const std::string &file_url="")
 
virtual ~VisualizationMeshcat ()
 
- Public Member Functions inherited from exotica::Uncopyable
 Uncopyable ()=default
 
 ~Uncopyable ()=default
 

Private Member Functions

void ConnectZMQ ()
 
std::string ReceiveZMQ ()
 
std::string RequestWebURL ()
 
template<typename T >
void SendMsg (T msg)
 
void SendZMQ (const std::string &data)
 

Private Attributes

zmq::context_t context_
 
std::string file_url_
 
std::string path_prefix_
 
ScenePtr scene_ = std::make_shared<Scene>(nullptr)
 
std::unique_ptr< zmq::socket_t > socket_
 
std::string web_url_
 
std::string zmq_url_
 

Detailed Description

Definition at line 41 of file visualization_meshcat.h.

Constructor & Destructor Documentation

exotica::VisualizationMeshcat::VisualizationMeshcat ( ScenePtr  scene,
const std::string &  url,
bool  use_mesh_materials = true,
const std::string &  file_url = "" 
)
virtual exotica::VisualizationMeshcat::~VisualizationMeshcat ( )
virtual

Member Function Documentation

void exotica::VisualizationMeshcat::ConnectZMQ ( )
private
void exotica::VisualizationMeshcat::Delete ( const std::string &  path = "")
void exotica::VisualizationMeshcat::DisplayScene ( bool  use_mesh_materials = true)
void exotica::VisualizationMeshcat::DisplayState ( Eigen::VectorXdRefConst  state,
double  t = 0.0 
)
void exotica::VisualizationMeshcat::DisplayTrajectory ( Eigen::MatrixXdRefConst  trajectory,
double  dt = 1.0 
)
std::string exotica::VisualizationMeshcat::GetFileURL ( )
std::string exotica::VisualizationMeshcat::GetWebURL ( )
void exotica::VisualizationMeshcat::Initialize ( bool  use_mesh_materials)
std::string exotica::VisualizationMeshcat::ReceiveZMQ ( )
private
std::string exotica::VisualizationMeshcat::RequestWebURL ( )
private
template<typename T >
void exotica::VisualizationMeshcat::SendMsg ( msg)
private
void exotica::VisualizationMeshcat::SendZMQ ( const std::string &  data)
private
void exotica::VisualizationMeshcat::SetProperty ( const std::string &  path,
const std::string &  property,
const double &  value 
)
void exotica::VisualizationMeshcat::SetProperty ( const std::string &  path,
const std::string &  property,
const std::string &  value 
)
void exotica::VisualizationMeshcat::SetProperty ( const std::string &  path,
const std::string &  property,
const bool &  value 
)
void exotica::VisualizationMeshcat::SetProperty ( const std::string &  path,
const std::string &  property,
const Eigen::Vector3d &  value 
)
void exotica::VisualizationMeshcat::SetProperty ( const std::string &  path,
const std::string &  property,
const Eigen::Vector4d &  value 
)

Member Data Documentation

zmq::context_t exotica::VisualizationMeshcat::context_
private

Definition at line 78 of file visualization_meshcat.h.

std::string exotica::VisualizationMeshcat::file_url_
private

Definition at line 74 of file visualization_meshcat.h.

std::string exotica::VisualizationMeshcat::path_prefix_
private

Definition at line 76 of file visualization_meshcat.h.

ScenePtr exotica::VisualizationMeshcat::scene_ = std::make_shared<Scene>(nullptr)
private

Definition at line 62 of file visualization_meshcat.h.

std::unique_ptr<zmq::socket_t> exotica::VisualizationMeshcat::socket_
private

Definition at line 79 of file visualization_meshcat.h.

std::string exotica::VisualizationMeshcat::web_url_
private

Definition at line 73 of file visualization_meshcat.h.

std::string exotica::VisualizationMeshcat::zmq_url_
private

Definition at line 72 of file visualization_meshcat.h.


The documentation for this class was generated from the following file:


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