Resets the IEEE1394 bus which first camera is attached to. Resetting the bus is "rude" to other devices because it causes them to re-enumerate on the bus and may cause a temporary disruption in their current activities. Thus, use it sparingly. Its primary use is if a program shuts down uncleanly and needs to free leftover ISO channels or bandwidth. A bus reset will free those things as a side effect.
#include <visp/vpConfig.h>
#include <visp/vpDebug.h>
#include <iostream>
#if defined(VISP_HAVE_DC1394_2)
#include <visp/vp1394TwoGrabber.h>
#include <visp/vpImage.h>
#include <visp/vpImageIo.h>
int
main()
{
try {
std::cout << "IEEE1394 bus reset in progress..." << std::endl;
std::cout << "IEEE1394 bus was reset." << std::endl;
}
catch (...) {
vpCERROR <<
"Failure: exit" << std::endl;
}
}
#else
int
main()
{
vpTRACE(
"Ieee 1394 grabber capabilities are not available...\n"
"You should install libdc1394-2 to use this binary.") ;
}
#endif