Robomaster SDK
CompletedHi,
I am working on a project with Robomaster using the SDK functionalities.
If a robomaster is moving in a rectangular path, it must detect a marker and come to a stop for 3 seconds before resuming its movement.
def on_detect_marker(marker_info):
number = len(marker_info)
markers.clear()
for i in range(0, number):
x, y, w, h, info = marker_info[0]
markers.append(MarkerInfo(
if info == '1' and tof <=500:
ep_chassis.move(x=0, y=0, z=0, xy_speed=0.7).wait_for_
time.sleep(3)
Here's what I did: I'm able to detect the sign, but it's not stopping. If anyone has any ideas on how to fix this, I would really appreciate some help.
Please sign in to leave a comment.
Comments
1 comment