AR_Robot icon indicating copy to clipboard operation
AR_Robot copied to clipboard

Give me error :(

Open davut5 opened this issue 5 years ago • 2 comments

first of all, thanks for your shared this tutorial. I am giving an error like that;

AR_Robot-master/Assets/Scripts/RobotFollowBehavior.cs(24,24): Error CS1061: 'DefaultTrackableEventHandler' does not contain a definition for 'isTracking' and no extension method 'isTracking' accepting a first argument of type 'DefaultTrackableEventHandler' could be found (are you missing a using directive or an assembly reference?) (CS1061) (Assembly-CSharp)

I added this line to "using Vuforia;" to RobotFollowBehavior.cs but didn't solved. :(

davut5 avatar Nov 15 '18 11:11 davut5

vuforia 7.2.23 unity 2018.1.0f2

davut5 avatar Nov 15 '18 11:11 davut5

I solved this by using a TrackableBehaviour instead of the DefaultTrackableEventHandler. A post on the Vuforia forums provides more details.

I've provided a text file of the code showing the changes that I made.

Disclaimer: I've only tested this on an Android phone, and without having it attached to an Arduino, but it seems to be working fine.

RobotFollowBehavior.txt

jvita avatar Jan 04 '20 18:01 jvita