8 parser = argparse.ArgumentParser(description=
'Python wrapper example over vpRobotFranka ViSP class')
9 parser.add_argument(
'--ip', type=str, default=
"192.168.30.10", dest=
'robot_ip', help=
'Robot IP address like 192.168.30.10')
11 args, unknown_args = parser.parse_known_args()
13 print(f
"The following args are not recognized and will not be used: {unknown_args}")
17 print(f
"Use robot IP: {args.robot_ip}")
20 robot.connect(args.robot_ip, RobotFranka.RealtimeConfig.kEnforce)
21 pos = robot.getPosition(Robot.JOINT_STATE)
22 print(f
"Initial joint position: \n{pos}")
24 print(
"\nWARNING: This example will move the robot!")
25 print(
"Please make sure to have the user stop button at hand!")
26 print(
"Press Enter to continue...")
29 print(
"Move to home position")
37 robot.setRobotState(Robot.STATE_POSITION_CONTROL)
38 robot.setPosition(Robot.JOINT_STATE, pos)