renamed aruco estimator file
This commit is contained in:
parent
3bd11a53ce
commit
9e1ce9b512
|
@ -7,12 +7,13 @@ from robot import Robot
|
||||||
|
|
||||||
from mpc_controller import MPCController
|
from mpc_controller import MPCController
|
||||||
|
|
||||||
import opencv_viewer_example
|
from aruco_estimator import ArucoEstimator
|
||||||
|
|
||||||
|
|
||||||
class RemoteController:
|
class RemoteController:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.robots = [Robot(12, '192.168.1.12')]
|
self.robots = []
|
||||||
|
#self.robots = [Robot(11, '192.168.1.11'), Robot(13, '192.168.1.13'), Robot(14, '192.168.1.14')]
|
||||||
|
|
||||||
self.robot_ids = {}
|
self.robot_ids = {}
|
||||||
for r in self.robots:
|
for r in self.robots:
|
||||||
|
@ -31,7 +32,7 @@ class RemoteController:
|
||||||
self.t = time.time()
|
self.t = time.time()
|
||||||
|
|
||||||
# start thread for marker position detection
|
# start thread for marker position detection
|
||||||
self.estimator = opencv_viewer_example.ArucoEstimator(self.robot_ids.keys())
|
self.estimator = ArucoEstimator(self.robot_ids.keys())
|
||||||
self.estimator_thread = threading.Thread(target=self.estimator.run_tracking)
|
self.estimator_thread = threading.Thread(target=self.estimator.run_tracking)
|
||||||
self.estimator_thread.start()
|
self.estimator_thread.start()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user