![]() |
Visual Servoing Platform version 3.7.0
|
#include <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 49 of file vpMocapVicon.h.
| BEGIN_VISP_NAMESPACE vpMocapVicon::vpMocapVicon | ( | ) |
Default constructor that creates a direct client (not a multi-cast client).
Definition at line 214 of file vpMocapVicon.cpp.
|
virtual |
Destructor.
Definition at line 219 of file vpMocapVicon.cpp.
|
virtual |
Close connexion with Vicon by stopping the capture.
Implements vpMocap.
Definition at line 224 of file vpMocapVicon.cpp.
|
virtual |
Connect to Vicon mocap server with IP address set using setServerAddress().
Implements vpMocap.
Definition at line 231 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 240 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 251 of file vpMocapVicon.cpp.
|
virtual |
Set mocap server address.
| [in] | serverAddr | : Server address. |
Reimplemented from vpMocap.
Definition at line 262 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 268 of file vpMocapVicon.cpp.
|
protectedinherited |
Definition at line 104 of file vpMocap.h.
Referenced by setServerAddress(), and vpMocap().
|
protectedinherited |
Definition at line 103 of file vpMocap.h.
Referenced by setVerbose(), and vpMocap().