drfenixion / freecad.robotcad

RobotCAD is a FreeCAD workbench to generate robot description packages for ROS2 (URDF) with launchers to Gazebo and RViz.
GNU Lesser General Public License v2.1
90 stars 10 forks source link

artifacts left after deletion of joint and it lead to broke recompile. Inherited from CROSS. #7

Closed drfenixion closed 6 months ago

drfenixion commented 6 months ago

15:29:49 Traceback (most recent call last): File "/home/ubuntu/.local/share/FreeCAD/Mod/freecad.cross/freecad/cross/robot_proxy.py", line 231, in execute self.set_joint_enum() File "/home/ubuntu/.local/share/FreeCAD/Mod/freecad.cross/freecad/cross/robot_proxy.py", line 376, in set_joint_enum child_links += get_possible_child_links(joint) File "/home/ubuntu/.local/share/FreeCAD/Mod/freecad.cross/freecad/cross/robot_proxy.py", line 364, in get_possible_child_links and link.Proxy.may_be_base_link() File "/home/ubuntu/.local/share/FreeCAD/Mod/freecad.cross/freecad/cross/link_proxy.py", line 386, in may_be_base_link return self.get_ref_joint() is None File "/home/ubuntu/.local/share/FreeCAD/Mod/freecad.cross/freecad/cross/link_proxy.py", line 371, in get_ref_joint and attr_equals(self._ref_joint, 'Child', ros_name(self.link)) File "/home/ubuntu/.local/share/FreeCAD/Mod/freecad.cross/freecad/cross/utils.py", line 77, in attr_equals return hasattr(instance, attr) and getattr(instance, attr) == value <class 'ReferenceError'>: Cannot access attribute 'Child' of deleted object 15:29:49 Recompute failed!

drfenixion commented 6 months ago

After close FreeCAD and reopen error disappeared.

drfenixion commented 6 months ago

Can not reproduce.