SlamFlexAdapter is example how setup SLAMflex library, setup image data from webtexture and every frame sending it to plugin. Also setup for callback when plugin sends data to Unity3D
More...
SlamFlexAdapter is example how setup SLAMflex library, setup image data from webtexture and every frame sending it to plugin. Also setup for callback when plugin sends data to Unity3D
Definition at line 19 of file SlamFlexAdapter.cs.
IEnumerator SlamFlexAdapter.AutoEnd |
( |
| ) |
|
|
inlineprivate |
Function for starting SLAMflex until enough points for generation of map is found
- Returns
Definition at line 341 of file SlamFlexAdapter.cs.
void SlamFlexAdapter.Awake |
( |
| ) |
|
|
inlineprivate |
IEnumerator SlamFlexAdapter.CheckTheValidityOfTexture |
( |
| ) |
|
|
inlineprivate |
Function for yield of unity3D update until webtexture is initialized
- Returns
Definition at line 161 of file SlamFlexAdapter.cs.
void SlamFlexAdapter.Logging |
( |
string |
message | ) |
|
|
inlineprivate |
Function for logging data on Application.persistentDataPath + "/log.txt"
- Parameters
-
Definition at line 358 of file SlamFlexAdapter.cs.
void SlamFlexAdapter.OnApplicationQuit |
( |
| ) |
|
|
inlineprivate |
void SlamFlexAdapter.OnGUI |
( |
| ) |
|
|
inlineprivate |
List<Vector2> SlamFlexAdapter.ParseCoordinates |
( |
string |
array | ) |
|
|
inlineprivate |
void SlamFlexAdapter.ReciveArrayPointsFromPlugin |
( |
IntPtr |
pointer, |
|
|
int |
size |
|
) |
| |
|
inlineprivate |
Function for communication between plugin and Unity, plugin sends array of points (corners) to Unity
- Parameters
-
pointer | pointer of array to copy from unmanaged to managad code |
size | size of array |
Definition at line 209 of file SlamFlexAdapter.cs.
void SlamFlexAdapter.RecivePoseFromPlugin |
( |
float |
r1, |
|
|
float |
r2, |
|
|
float |
r3, |
|
|
double |
t1, |
|
|
double |
t2, |
|
|
double |
t3 |
|
) |
| |
|
inlineprivate |
Function for reciving pose from plugin, rotation in euler angles and translation
- Parameters
-
r1 | rotation euler angle for unity game object transform X |
r2 | rotation euler angle for unity game object transform Y |
r3 | rotation euler angle for unity game object transform Z |
t1 | translation for unity game object transform X |
t2 | translation for unity game object transform Y |
t3 | translation for unity game object transform Z |
Definition at line 250 of file SlamFlexAdapter.cs.
void SlamFlexAdapter.ReciveStringFromPlugin |
( |
string |
message | ) |
|
|
inlineprivate |
Function for communication between plugin and Unity, plugin sends plain string
- Parameters
-
message | string message from plugin |
Definition at line 184 of file SlamFlexAdapter.cs.
void SlamFlexAdapter.SetCornerTexturePoints |
( |
int[] |
corners | ) |
|
|
inlineprivate |
Function for drawing corners on separate texture
- Parameters
-
corners | array of corners for draw |
Definition at line 222 of file SlamFlexAdapter.cs.
void SlamFlexAdapter.Start |
( |
| ) |
|
|
inlineprivate |
void SlamFlexAdapter.Update |
( |
| ) |
|
|
inlineprivate |
void SlamFlexAdapter.UserMessages |
( |
string |
message | ) |
|
|
inline |
Function for presentation of user messages on GUI
- Parameters
-
message | message to present |
Definition at line 372 of file SlamFlexAdapter.cs.
GameObject SlamFlexAdapter._bg_panel |
|
private |
GameObject SlamFlexAdapter._bg_panel_corner_points |
|
private |
Color32 [] SlamFlexAdapter._buf |
|
protected |
GameObject SlamFlexAdapter._ground_plane |
float SlamFlexAdapter.aspect = 1.38188006064344f |
|
private |
bool SlamFlexAdapter.autoend = false |
|
private |
Texture2D SlamFlexAdapter.cornerPoints |
|
private |
bool SlamFlexAdapter.enable_logging = false |
string SlamFlexAdapter.logFileData = "" |
|
private |
GCHandle SlamFlexAdapter.m_PixelsHandle |
|
private |
Vector3 SlamFlexAdapter.orginalPlainePosition |
|
private |
Vector3 SlamFlexAdapter.planeRotation |
|
private |
bool SlamFlexAdapter.planeRotationFound = false |
|
private |
Vector3 SlamFlexAdapter.planeTranslation = Vector3.zero |
|
private |
int SlamFlexAdapter.screen_height = 480 |
|
private |
int SlamFlexAdapter.screen_width = 640 |
|
private |
bool SlamFlexAdapter.textureOk = false |
|
private |
string SlamFlexAdapter.userMessagesText = "" |
|
private |
string SlamFlexAdapter.userMessagesText1 = "" |
|
private |
string SlamFlexAdapter.userMessagesTextInstr = "Translate the camera slowly sideways" |
|
private |
WebCamTexture SlamFlexAdapter.w |
|
private |
The documentation for this class was generated from the following file: