5 #include <visp3/core/vpConfig.h> 7 #ifdef VISP_HAVE_FRANKA 9 #include <franka/exception.h> 10 #include <franka/robot.h> 21 int main(
int argc,
char **argv)
24 std::cerr <<
"Usage: ./echo_robot_state <robot-hostname>" << std::endl;
29 franka::Robot robot(argv[1]);
32 robot.read([&count](
const franka::RobotState &robot_state) {
35 std::cout << robot_state << std::endl;
39 std::cout <<
"Done." << std::endl;
40 }
catch (franka::Exception
const &e) {
41 std::cout << e.what() << std::endl;
49 int main() { std::cout <<
"This example needs libfranka to control Panda robot." << std::endl; }