Items with no label
3338 Diskussionen

intel realsense sr300 object tracking

LMart13
Anfänger
7.471Aufrufe

how can i track the same target identifier of an object every time?

it seems not returns the same trackvalue of an certain object

0 Kudos
46 Antworten
LMart13
Anfänger
2.268Aufrufe

the relative change of angles and pos are not affected,values are not to be 1:1 though.

when the physical object moves,the tracked thing in Unity is the same thing before the virtual object moves?

MartyG
Geehrter Beitragender III
2.268Aufrufe

If you are asking whether Unity will keep tracking the same physical object if it moves or change its tracking to a different physical object ... I would think that Unity woud try to keep tracking the same object, but if that object moves away from the center of the camera's view, becomes too far away or leaves the camera's view totally then the tracking of a particular object is more likely to be lost.

LMart13
Anfänger
2.268Aufrufe

how can i connect sr300 in a Unity project?do i need to install some plugins?

MartyG
Geehrter Beitragender III
2.268Aufrufe

The Unity SDK comes with a program called the Unity Toolkit. You start a new Unity project, then run the Toolkit program whilst your Unity project is open and it imports the RealSense files and plugins into the project so that it will work with the camera.

The toolkit works with the '2016 R2' version of the RealSense SDK. R2 can be downloaded as a 1.8 gb download using the link below.

http://registrationcenter-download.intel.com/akdlm/irc_nas/vcp/9078/intel_rs_sdk_offline_package_10.0.26.0396.exe http://registrationcenter-download.intel.com/akdlm/irc_nas/vcp/9078/intel_rs_sdk_offline_package_10.0.26.0396.exe

You would have to install Unity 2017 first though by downloading it from the Unity website. That is a 1 GB + download too.

LMart13
Anfänger
2.268Aufrufe

i installed the Unity,i cant find the Unity Toolkit, Mr. master

MartyG
Geehrter Beitragender III
2.268Aufrufe

It should be located on your computer in the folder C > Program Files (x86) > Intel > RSSDK > Framework > Unity

LMart13
Anfänger
2.268Aufrufe

do i have to open Unity project all the time when i get the rotation data ?

LMart13
Anfänger
2.268Aufrufe

can i use Unity without Unity Editor ?like reference some DLLs in my c# project,then i can get the Unity data.

MartyG
Geehrter Beitragender III
2.268Aufrufe

You would at least have to use the Unity editor to develop the program, of course. But you do not need the editor for the finished project, as you can create a standalone executable launch file of the Unity part of the project that runs like a normal program.

LMart13
Anfänger
2.268Aufrufe

when i run the Toolkit program,i cant find my sr300 device on the list.

can i create a Unity project in Unity editor,add sr300 by myself.

MartyG
Geehrter Beitragender III
2.268Aufrufe

When you add the Toolkit to a new Unity project, it should add the camera DLLs that enable the camera to work in Unity. There are not DLLs for specific camera models. The same DLLs are used for all the cameras the Windows RealSense SDK supports in the 2016 R2 SDK (F200, R200, SR300).

The DLLs are called libpxcclr.unity.dll and libpxccpp2c.dll. They are placed by the Toolkit in the 'Plugins' and 'Plugsins_Managed' folders that the Toolkit creates in your project.

LMart13
Anfänger
2.268Aufrufe

there is a virtual cube in the scene,how to combine it with my physical object.

MartyG
Geehrter Beitragender III
2.268Aufrufe

You should go to the folder RSUnityToolkit > Actions in your Unity project. Look for a script called TrackingAction in this folder. Hold the left mouse button down on the TrackingAction script and drag it over to your cube with the mouse. When the mouse cursor is over the cube, release the mouse button to drop the TrackingAction script into the cube.

Now when you highlight the cube by left-clicking on it, the TrackingAction script and its menus will be visible in the Inspector panel on the right-hand side of your Unity window.

LMart13
Anfänger
2.268Aufrufe

it comes with a warning:Sense Manager Object not found and was added automatically.

do i miss something?

LMart13
Anfänger
2.268Aufrufe

when i run the object tracking sample:

var senseManager = GameObject.FindObjectOfType(typeof(SenseToolkitManager));

it returns null

LMart13
Anfänger
2.268Aufrufe

how to fix this code, i can get real object in the scene

MartyG
Geehrter Beitragender III
2.239Aufrufe

It is totally normal to get the 'added to scene' message, so don't worry about that.

LMart13
Anfänger
2.239Aufrufe

does it mean detect failure

MartyG
Geehrter Beitragender III
2.239Aufrufe

The 'added to scene' message is nothing to do with object detection. The camera uses a component called the Sense Manager to make camera functions work. If any camera project (not just Unity ones) finds there is not a Sense Manager when the program runs then it creates a Sense Manager component. It is nothing to worry about.

LMart13
Anfänger
2.239Aufrufe

ok,i see. when i rotate real object ,the cube dont rotate.so i thought object detected failure.

some setting jobs to be done?

MartyG
Geehrter Beitragender III
2.239Aufrufe

I don't use the Object Tracking part of TrackingAction in my own project (only Hand and Face) so I can only guess at what the problem is.

The first question I would ask is whether you have set TrackingAction for the Object Tracking mode by opening the menu next to the 'Set defaults to' option and selected Object Tracking.

Antworten