dora-rs / dora-drives

A step-by-step tutorial that allows beginners to write their own autonomous vehicle program from scratch using a simple starter kit. Dora-drives makes learning autonomous vehicle systems faster and easier.
https://www.dora-rs.ai/docs/guides/dora-drives/
Apache License 2.0
48 stars 11 forks source link

error: OpenCV(4.6.0) : error: (-5:Bad argument) in function 'circle' #60

Open meua opened 1 year ago

meua commented 1 year ago

Describe the bug Extra parameters in the request method.

To Reproduce Steps to reproduce the behavior:

  1. Dora start daemon: dora up
  2. Start a new dataflow: dora start graphs/oasis/oasis_agent_planning.yaml --attach

Screenshots or Video image

Environments (please complete the following information):

meua commented 1 year ago
            for waypoint in gps_waypoints:
                if np.isnan(waypoint).any():
                    break
                cv2.circle(
                    resized_image,
                    (int(waypoint[0]), int(waypoint[1])),
                    3,
                    (
                        int(np.clip(255 - waypoint[2] * 100, 0, 255)),
                        int(np.clip(waypoint[2], 0, 255)),
                        122,
                    ),
                    # -1,
                )

It is normal to delete the parameter -1