compas-dev / compas_fab

Robotic fabrication package for the COMPAS Framework.
https://compas.dev/compas_fab/
MIT License
108 stars 32 forks source link

Runtime error (TypeErrorException): __init__() got an unexpected keyword argument 'pose' #355

Open JulianTrummer opened 2 years ago

JulianTrummer commented 2 years ago

Describe the bug Inverse kinematics returns an error once a tool is attached. The tool components were copied/pasted from a different robot environment (IRB 6700); there it works perfectly well with the same setup (with the obvious exception of the Dockerfile).

To Reproduce Steps to reproduce the behavior:

  1. Pull the crb15000_fabrication_control repository
  2. Compose-up the local docker file
  3. Run /rhino/crb15000_env.3dm and /rhino/crb15000_moveit_control.ghx
  4. Load the clients and the robot (use ROS Robot model) and go to "Plan cartesian motion". IK should be calculated smoothly.
  5. Now attach a tool and try again. You should receive the following error message:
Runtime error (TypeErrorException): __init__() got an unexpected keyword argument 'pose'

Traceback:
  line 45, in plan_cartesian_motion, "C:\Users\julia\AppData\Roaming\McNeel\Rhinoceros\7.0\scripts\compas_fab\backends\ros\planner.py"
  line 35, in plan_cartesian_motion, "C:\Users\julia\AppData\Roaming\McNeel\Rhinoceros\7.0\scripts\compas_fab\backends\interfaces\client.py"
  line 136, in await_callback, "C:\Users\julia\AppData\Roaming\McNeel\Rhinoceros\7.0\scripts\compas\utilities\azync.py"
  line 103, in plan_cartesian_motion, "C:\Users\julia\AppData\Roaming\McNeel\Rhinoceros\7.0\scripts\compas_fab\backends\ros\backend_features\move_it_plan_cartesian_motion.py"
  line 133, in __call__, "C:\Users\julia\AppData\Roaming\McNeel\Rhinoceros\7.0\scripts\compas_fab\backends\interfaces\backend_features.py"
  line 1474, in plan_cartesian_motion, "C:\Users\julia\AppData\Roaming\McNeel\Rhinoceros\7.0\scripts\compas_fab\robots\robot.py"
  line 46, in script

Expected behavior Calculate the IK

Desktop (please complete the following information):

gonzalocasas commented 1 year ago

@JulianTrummer could you please check again using an install from source? This should be fixed by this: https://github.com/compas-dev/compas_fab/pull/366