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 bool &value)
 
void SetProperty (const std::string &path, const std::string &property, const double &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)
 
void SetProperty (const std::string &path, const std::string &property, const std::string &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

◆ VisualizationMeshcat()

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

◆ ~VisualizationMeshcat()

virtual exotica::VisualizationMeshcat::~VisualizationMeshcat ( )
virtual

Member Function Documentation

◆ ConnectZMQ()

void exotica::VisualizationMeshcat::ConnectZMQ ( )
private

◆ Delete()

void exotica::VisualizationMeshcat::Delete ( const std::string &  path = "")

◆ DisplayScene()

void exotica::VisualizationMeshcat::DisplayScene ( bool  use_mesh_materials = true)

◆ DisplayState()

void exotica::VisualizationMeshcat::DisplayState ( Eigen::VectorXdRefConst  state,
double  t = 0.0 
)

◆ DisplayTrajectory()

void exotica::VisualizationMeshcat::DisplayTrajectory ( Eigen::MatrixXdRefConst  trajectory,
double  dt = 1.0 
)

◆ GetFileURL()

std::string exotica::VisualizationMeshcat::GetFileURL ( )

◆ GetWebURL()

std::string exotica::VisualizationMeshcat::GetWebURL ( )

◆ Initialize()

void exotica::VisualizationMeshcat::Initialize ( bool  use_mesh_materials)

◆ ReceiveZMQ()

std::string exotica::VisualizationMeshcat::ReceiveZMQ ( )
private

◆ RequestWebURL()

std::string exotica::VisualizationMeshcat::RequestWebURL ( )
private

◆ SendMsg()

template<typename T >
void exotica::VisualizationMeshcat::SendMsg ( msg)
private

◆ SendZMQ()

void exotica::VisualizationMeshcat::SendZMQ ( const std::string &  data)
private

◆ SetProperty() [1/5]

void exotica::VisualizationMeshcat::SetProperty ( const std::string &  path,
const std::string &  property,
const bool &  value 
)

◆ SetProperty() [2/5]

void exotica::VisualizationMeshcat::SetProperty ( const std::string &  path,
const std::string &  property,
const double &  value 
)

◆ SetProperty() [3/5]

void exotica::VisualizationMeshcat::SetProperty ( const std::string &  path,
const std::string &  property,
const Eigen::Vector3d value 
)

◆ SetProperty() [4/5]

void exotica::VisualizationMeshcat::SetProperty ( const std::string &  path,
const std::string &  property,
const Eigen::Vector4d &  value 
)

◆ SetProperty() [5/5]

void exotica::VisualizationMeshcat::SetProperty ( const std::string &  path,
const std::string &  property,
const std::string &  value 
)

Member Data Documentation

◆ context_

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

Definition at line 78 of file visualization_meshcat.h.

◆ file_url_

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

Definition at line 74 of file visualization_meshcat.h.

◆ path_prefix_

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

Definition at line 76 of file visualization_meshcat.h.

◆ scene_

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

Definition at line 62 of file visualization_meshcat.h.

◆ socket_

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

Definition at line 79 of file visualization_meshcat.h.

◆ web_url_

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

Definition at line 73 of file visualization_meshcat.h.

◆ zmq_url_

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 Fri Aug 2 2024 08:43:03