NiryoRobotics / ned_applications

Applications or tutorials code hosting for Ned
https://niryo.com
GNU General Public License v3.0
3 stars 16 forks source link

Tick tack toe game app crash when user places pawns on gameboard #2

Open iamkhan001 opened 2 years ago

iamkhan001 commented 2 years ago

Hi there,

I'm trying to run Tick tack toe game on Niryo Ned, but when user is placing objects on game board, i'm getting following error

exception 1 > :  Command KO : An error occured while executing the last command : Error Code : -303
Message : Object 'default_ws' does not exist

Screenshot 2022-05-31 at 1 30 52 PM

As you can see in above image, as soon as i place object, program crashes.

I guess error is in game.py file on line self.__objects = self.__object_detector.detect_all_object() after placing objects

Please help on this

Jpl-niryo commented 2 years ago

Hi @iamkhan001, It looks like you did not configure your workspace in the tic_tac_toe_config.yaml file. The "default_ws" line 30 needs to be replaced with the workspace name you have chosen in NiryoStudio when setting up the vision set.

Sorry for the delayed response,

Hope this helps,

Cheers,

Jpl