Test for reading the Virtuose's joint values inside the main function after checking the emergency button.
#include <visp3/robot/vpVirtuose.h>
int main()
{
#if defined(VISP_HAVE_VIRTUOSE)
try {
if (emergStop)
{
std::cout << "The system is operational." << std::endl;
std::cout <<
"The current joint values are : " << q.
t() << std::endl;
}
else
std::cout << "The system is not operational. \nPlease plug the emergency stop to the system (or untrigger it)." << std::endl;
}
}
#else
std::cout << "You should install Virtuose SDK to use this binary..." << std::endl;
#endif
}