Visual Servoing Platform
version 3.6.1 under development (2024-11-15)
|
#include <visp3/sensor/vpMocapVicon.h>
Public Member Functions | |
vpMocapVicon () | |
virtual | ~vpMocapVicon () |
void | close () |
bool | connect () |
bool | getBodiesPose (std::map< std::string, vpHomogeneousMatrix > &bodies_pose, bool all_bodies=false) |
bool | getSpecificBodyPose (const std::string &body_name, vpHomogeneousMatrix &body_pose) |
void | setServerAddress (const std::string &serverAddr) |
void | setVerbose (bool verbose) |
Protected Attributes | |
bool | m_verbose |
std::string | m_serverAddr |
Vicon motion capture wrapper.
Definition at line 51 of file vpMocapVicon.h.
BEGIN_VISP_NAMESPACE vpMocapVicon::vpMocapVicon | ( | ) |
Default constructor that creates a direct client (not a multi-cast client).
Definition at line 216 of file vpMocapVicon.cpp.
|
virtual |
Destructor.
Definition at line 221 of file vpMocapVicon.cpp.
|
virtual |
Close connexion with Vicon by stopping the capture.
Implements vpMocap.
Definition at line 226 of file vpMocapVicon.cpp.
|
virtual |
Connect to Vicon mocap server with IP address set using setServerAddress().
Implements vpMocap.
Definition at line 233 of file vpMocapVicon.cpp.
|
virtual |
Gets the pose of the different bodies.
[out] | bodies_pose | : Map of body names and corresponding poses. |
[in] | all_bodies | : When true, consider all bodies, even those that are not visible and that contain nan in their pose. |
Implements vpMocap.
Definition at line 242 of file vpMocapVicon.cpp.
|
virtual |
Gets the pose of a specific body.
[out] | body_pose | : The homogeneous transformation matrix for the specific body. |
[in] | body_name | : The name of the body. |
Implements vpMocap.
Definition at line 253 of file vpMocapVicon.cpp.
|
virtual |
Set mocap server address.
[in] | serverAddr | : Server address. |
Reimplemented from vpMocap.
Definition at line 264 of file vpMocapVicon.cpp.
|
virtual |
Enable or disable verbose mode.
[in] | verbose | : When true enable verbose mode, otherwise disable verbose mode. |
Reimplemented from vpMocap.
Definition at line 270 of file vpMocapVicon.cpp.