-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
namespace 'UrdfImporter' does not exist in 'Unity.Robotics' #228
Comments
The URDF importer needs to compile for whichever build target you have set (In my case, I use Android). First, move the URDF importer package from the CachedPackage folder to the asset package folder:
When the package is moved, let it recompile and find the package in the editor. |
Hey, Thanks! |
Further more, Im not sure if this is for all build platforms, but is for Android. |
I have a Unity project with the URDF-Importer plugin (v0.5.2), and I need to get the name of the joints from code like this:
string joint_name = articulationBody.gameObject.GetComponent<UrdfJointRevolute>().jointName;
which uses
using Unity.Robotics.UrdfImporter
.When I run the app in the Editor everything works fine, but when I build the app, it fails because it cannot fine the namespace:
The type or namespace name 'UrdfImporter' does not exist in the namespace 'Unity.Robotics' (are you missing an assembly reference?)
I also tried adding the entire namespace to the GetComponent type like:
string joint_name = articulationBody.gameObject.GetComponent<Unity.Robotics.UrdfImporter.UrdfJointRevolute>().jointName;
but it is the sameIs the
using Unity.Robotics.UrdfImporter
just available on the Editor? or how can I fix that?The text was updated successfully, but these errors were encountered: