Tags:
view all tags
---+ Creating the virtual world The virtual world we want to create will show the ultra-sonic sensor and the paper we hold in front of it. The paper color in the virtual world should reflect the paper color in the real world and the paper distance to the distance sensor should also be the same in the real and the virtual world. The virtual world is composed of 3d objects which cab easily be created with the [[http://vpython.org/][vpython library]]. The distance sensor consists of a plate with tw cylinders representing the loudspeaker and the microphone. The paper sheet is represented as a thin box. The color of this box can be modified as a paper with a new color is inserted into the system in the real world and its position can be updated when the distance to the distance sensor changes. Before animating we must creat the scene. The below screen dump shows how this can look like. <img alt="" height="537" src="%ATTACHURL%/scene.png" width="551" /> -- %USERSIG{UliRaich - 2018-03-06}% ---++ Comments <br />%COMMENT%
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
png
scene.png
r1
manage
11.9 K
2018-03-06 - 20:35
UliRaich
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r1 - 2018-03-06
-
UliRaich
Home
Site map
AFNOG web
Embedded_Systems web
IoT_Course_English web
IoT_Course_French web
Main web
Sandbox web
TWiki web
AFNOG Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
Edit
Attach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback