mirror of
https://github.com/PotentiaRobotics/ComputerVision.git
synced 2025-04-09 22:40:15 -04:00
fixes
This commit is contained in:
parent
feb84aee64
commit
7a97a5a389
|
@ -19,6 +19,7 @@ behavior.
|
|||
"""
|
||||
|
||||
from controller import Lidar
|
||||
from controller import LidarPoint
|
||||
from controller import DistanceSensor
|
||||
from controller import Robot
|
||||
|
||||
|
@ -26,18 +27,19 @@ TIME_STEP = 32
|
|||
|
||||
robot = Robot()
|
||||
|
||||
us0 = DistanceSensor("us0")
|
||||
us1 = DistanceSensor("us1")
|
||||
us0.enable(TIME_STEP)
|
||||
us1.enable(TIME_STEP)
|
||||
|
||||
# print(point)
|
||||
|
||||
lidar = Lidar("lidar")
|
||||
lidar.enable(TIME_STEP)
|
||||
lidar.enablePointCloud()
|
||||
print(lidar.getFrequency())
|
||||
while robot.step(32) != -1:
|
||||
print(lidar)
|
||||
|
||||
# https://pcl.readthedocs.io/projects/tutorials/en/latest/
|
||||
|
||||
# print(temp[10][0])
|
||||
# while robot.step(1000) != -1:
|
||||
# temp = lidar.getPointCloud()
|
||||
# for i in temp:
|
||||
# print(i)
|
||||
# print(help(lidar))
|
||||
# lidar = robot.getDevice("lidar")
|
||||
# lidar.enable(TIME_STEP)
|
|
@ -1,5 +1,5 @@
|
|||
Webots Project File version R2021b
|
||||
perspectives: 000000ff00000000fd000000040000000000000069000003d6fc0100000002fc00000000ffffffff0000000000fffffffc0200000001fb00000012005300630065006e0065005400720065006501000000000000039f0000000000000000fb0000001a0044006f00630075006d0065006e0074006100740069006f006e0000000000ffffffff0000000000000000000000010000023a0000039bfc0200000001fb0000001400540065007800740045006400690074006f007201000000160000039b0000008900ffffff000000020000078000000242fc0100000001fb0000001e00480074006d006c0052006f0062006f007400570069006e0064006f00770000000000000007800000000000000000000000030000078000000039fc0100000002fb0000000e0043006f006e0073006f006c006501000000000000073f0000000000000000fb0000001a0043006f006e0073006f006c00650041006c006c0041006c006c0100000000000007800000006900ffffff000005440000039b00000004000000040000000100000008fc00000000
|
||||
perspectives: 000000ff00000000fd000000040000000000000069000003d6fc0100000002fc00000000ffffffff0000000000fffffffc0200000001fb00000012005300630065006e0065005400720065006501000000000000039f0000000000000000fb0000001a0044006f00630075006d0065006e0074006100740069006f006e0000000000ffffffff0000000000000000000000010000023a000002f1fc0200000001fb0000001400540065007800740045006400690074006f00720100000016000002f10000008900ffffff000000020000078000000242fc0100000001fb0000001e00480074006d006c0052006f0062006f007400570069006e0064006f007700000000000000078000000000000000000000000300000780000000e3fc0100000002fb0000000e0043006f006e0073006f006c006501000000000000073f0000000000000000fb0000001a0043006f006e0073006f006c00650041006c006c0041006c006c0100000000000007800000006900ffffff00000544000002f100000004000000040000000100000008fc00000000
|
||||
simulationViewPerspectives: 000000ff00000001000000020000016c000004a00100000002010000000101
|
||||
sceneTreePerspectives: 000000ff0000000100000002000000c0000001120100000002010000000201
|
||||
maximizedDockId: -1
|
||||
|
|
|
@ -9,7 +9,7 @@ WorldInfo {
|
|||
}
|
||||
Viewpoint {
|
||||
orientation 0.011982571754036471 0.990420797366239 0.13756112139184917 3.2259807768666806
|
||||
position -1.4961382249248047 1.1886174880513347 -2.8567792616605474
|
||||
position -0.47807713358084486 1.1788407458010974 -2.8710608860653486
|
||||
}
|
||||
TexturedBackground {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user