Discussion

Left ArrowBack to discussions page
PierreOlivier_ProulxPierreOlivier_Proulx Posts: 50Beta Tester VIsion 1.1 Program Handy
edited July 2016 in Programming
If you made programs with the old gripper and sensor packages, you can still use them with the new URCaps. Here is how to do it.

First, for the gripper, you can open your urp program in Polyscope and try executing it. You should see an error message that tells you that some functions is defined twice.



This is because the urcap embeds the functions directly in the program preamble so we do not need the BeforeStart section anymore. Comment those lines as in the next screenshot and try to run the program. You will still get this error.



This error arises because we changed some functions names because of a naming conflict with the sensor package. To solve the problem you can either suppress those functions or rename them. Since they are probably not used in a production program, the fastest would be to suppress them.





Here is the list of the functions that were renamed:
  • rq_print_fault_code -> rq_print_gripper_fault_code
  • rq_print_num_cycles -> rq_print_gripper_num_cycles
  • rq_print_driver_state -> rq_print_gripper_driver_state
  • rq_print_firmware_version -> rq_print_gripper_firmware_version
  • rq_print_driver_version -> rq_print_gripper_driver_version
  • rq_print_probleme_connection -> rq_print_gripper_probleme_connection
With those modifications, you should be able to run your older programs.

Regarding the sensor programs, you should be able to run it directly without modifications as we decided to keep the old template in order to retrieve the force/torque values.
Pierre-Olivier Proulx
Software Designer
poproulx@robotiq.com

Comments

Sign In or Register to comment.
Left ArrowBack to discussions page