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 <visp3/core/vpConfig.h>
#include <visp3/core/vpDebug.h>
#include <iostream>
#ifdef ENABLE_VISP_NAMESPACE
#endif
#if defined(VISP_HAVE_DC1394)
#include <visp3/core/vpImage.h>
#include <visp3/io/vpImageIo.h>
#include <visp3/sensor/vp1394TwoGrabber.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...");
vpTRACE("You should install libdc1394-2 to use this binary.");
}
#endif
Class for firewire ieee1394 video devices using libdc1394-2.x api.
void acquire(vpImage< unsigned char > &I)