Skip to content
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

Tracking Charuco Board not possible #45

Open
juliasser opened this issue Nov 6, 2021 · 1 comment
Open

Tracking Charuco Board not possible #45

juliasser opened this issue Nov 6, 2021 · 1 comment

Comments

@juliasser
Copy link

When I try to open the "TrackMarkers" Scene, add an Empty and add the ArucoCharucoBoard Script plus Aruco Object Displayer and also add it to the ArucoObjects in the ArucoObjectTracker, then I get the following two error messages:

ApplicationException: Mutex is not owned
System.Threading.Mutex.ReleaseMutex () (at <695d1cc93cca45069c528c15c9fdd749>:0)
(wrapper remoting-invoke-with-check) System.Threading.Mutex.ReleaseMutex()
ArucoUnity.Utilities.ArucoCameraSeparateThread.b__25_0 () (at Assets/ArucoUnity/Scripts/Utilities/ArucoCameraSeparateThread.cs:93)
System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Threading.ThreadHelper.ThreadStart () (at <695d1cc93cca45069c528c15c9fdd749>:0)
UnityEngine.<>c:b__0_0(Object, UnhandledExceptionEventArgs)

NullReferenceException: Object reference not set to an instance of an object
ArucoUnity.Objects.Trackers.ArucoObjectsTracker.ArucoCamera_ImagesUpdated () (at Assets/ArucoUnity/Scripts/Objects/Trackers/ArucoObjectsTracker.cs:315)
ArucoUnity.Cameras.ArucoCamera.OnImagesUpdated () (at Assets/ArucoUnity/Scripts/Cameras/ArucoCamera.cs:177)
ArucoUnity.Cameras.ArucoCamera.Update () (at Assets/ArucoUnity/Scripts/Cameras/ArucoCamera.cs:67)

Is tracking a Charuco Board not supported?

Thanks!

@egemenertugrul
Copy link

Some discrepancies between the code on GitHub and the .unitypackage cause this.

This line:
if (arucoCharucoBoard.DetectedIds.Size() > 0)
should be:
if (arucoCharucoBoard.DetectedIds != null && arucoCharucoBoard.DetectedIds.Size() > 0)

as seen here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants