compas icon indicating copy to clipboard operation
compas copied to clipboard

RobotModel SceneObject with Python3 in Rhino8

Open gidodielemans opened this issue 1 year ago • 3 comments

Describe the bug Robot visualization not possible with Python3 in Rhino8

To Reproduce Steps to reproduce the behavior:

from compas_robots.ghpython.scene import RobotModelObject
Load URDF from ROS

robot = ros_client.load_robot(
            load_geometry=True, 
            urdf_param_name= '/robot_description,
            srdf_param_name= '/robot_description_semantic')
robot.scene_object = RobotModelObject(robot.model)`

Expected behavior A RobotModelObject for visualization is attached to the Robot object

Error messages No scene object is registered for this data type: <type 'compas_robots.robot.model.RobotModel'> No module named System.Array

Desktop (please complete the following information):

  • OS: Windows
  • Python 3.9.10
  • Python package manager Rhino (.rhinocode/py3.9-rh8)

gidodielemans avatar May 14 '24 17:05 gidodielemans

#1356 Here an attempt on a fix for the System module incompatibility

gidodielemans avatar May 14 '24 17:05 gidodielemans

yes, there are quite a few of these System problem in compas_ghpython in Rhino 8. thanks for the fix. will have a look...

tomvanmele avatar May 14 '24 17:05 tomvanmele

Related pull request in compas_robots https://github.com/compas-dev/compas_robots/pull/16

gidodielemans avatar May 15 '24 08:05 gidodielemans