Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
The virtual world exampleIntroduction | ||||||||
Line: 28 to 28 | ||||||||
![]() | ||||||||
Added: | ||||||||
> > | vpython v7 did not work out of the box with Ubunttu 22.04. Specific versions of the python modules:
pip uninstall autobahn pip uninstall txaiothen install the required versions: pip install autobahn==21.11.1This will also install the correct version of txaio. | |||||||
-- ![]() Comments |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
The virtual world exampleIntroductionThe virtual world example uses a TCS3200 color sensor and a HC-SR04 ultrasonic distance meter. When a colored paper is placed in front of the color sensor, the rgb (red, green, blue) components of the paper color are acquired. Then the HC-SR04 is used to measure the distance between the paper and the setup.![]() The color sensorA TCS3200 color sensor is used to determine the paper color. You find a description of it on the TCS3200 page. A driver for the color sensor as well as a few test programs are available.The HC-SR04 ultrasonic distance meterThe HC-SR04 distance measurement is described on the HC-SR04 page.Creating of the virtual world using vpythonvpython![]()
![]() ![]() Comments
|