Closed Akashleena closed 2 years ago
Hi, thanks for the report! Could you provide more details about this issue, including (where possible):
Could you also describe what happens exactly when you import the robot? Is it successfully importing the full robot without any other errors before you get this IndexOutOfRangeException? My initial suspicion is that the articulationChain
(articulationChain = this.GetComponentsInChildren<ArticulationBody>();
) is not populating correctly due to the full robot not importing as expected.
[Ticket# AIRO-1125]
This issue has been marked stale because it has been open for 14 days with no activity. Please remove the stale label or comment on this issue, or the issue will be automatically closed in the next 14 days.
This issue has been marked stale for 14 days and will now be closed. If this issue is still valid, please ping a maintainer.
IndexOutOfRangeException: Index was outside the bounds of the array. Unity.Robotics.UrdfImporter.Control.Controller.StoreJointColors (System.Int32 index) (at Library/PackageCache/com.unity.robotics.urdf-importer@e9859c4bec/Runtime/Controller/Controller.cs:163) Unity.Robotics.UrdfImporter.Control.Controller.Start () (at [Library/PackageCache/com.unity.robotics.urdf-importer@e9859c4bec/Runtime/Controller/Controller.cs:49)]
My controller.cs file is as follows: using System; using Unity.Robotics; using UnityEngine;
namespace Unity.Robotics.UrdfImporter.Control { public enum RotationDirection { None = 0, Positive = 1, Negative = -1 }; public enum ControlType { PositionControl };