Robomaster EP SDK
265 3 2023-8-7
Uploading and Loding Picture ...(0/1)
o(^-^)o
Chitti
lvl.1
Germany
Offline

Hi,
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(x, y, w, h, info))
        if info == '1' and tof <=500:
              ep_chassis.move(x=0, y=0, z=0, xy_speed=0.7).wait_for_completed()
              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.

2023-8-7
Use props
DJI Mindy
Administrator
Flight distance : 7 ft
  • >>>
Offline

Hi there, you can contact dev@dji.com for further assistance.
2023-8-8
Use props
Chitti
lvl.1
Germany
Offline

Hi,
Thank you. I will do that.
2023-8-8
Use props
DJI Mindy
Administrator
Flight distance : 7 ft
  • >>>
Offline

Chitti Posted at 8-8 01:02
Hi,
Thank you. I will do that.

You're welcome. If there is anything else we can help you with, please feel free to contact us.
2023-8-8
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules