Python Scripts not Working as Intended
Posted: 20 Sep 2022, 23:30
Hello,
I am trying to get the controlledViaScript.ttt scene (found in "C:\Program Files\CoppeliaRobotics\CoppeliaSimEdu\scenes\controlTypeExamples") to work with the built-in python script. Two of the Three robots work as they should (the two Lua ones), but the python-controlled robot keeps backing up and turning forever. From what I gather, it is only supposed to backup turning for 3 seconds when it detects something in front of it. I've even removed the obstacle in front of it, but it still keeps backing up.
I have updated my default python interpreter in the "usrset.txt" file (I found the path to my default python interpreter by opening IDLE and entering
>> import os
>> import sys
>> os.path.dirname(sys.executable)).
I had also installed cbor and pyzmq with pip as I was prompted to do by the software (Python controlled robot did nothing before I did this). Any help would be greatly appreciated as I am a beginner with
Coppeliasim.
I am trying to get the controlledViaScript.ttt scene (found in "C:\Program Files\CoppeliaRobotics\CoppeliaSimEdu\scenes\controlTypeExamples") to work with the built-in python script. Two of the Three robots work as they should (the two Lua ones), but the python-controlled robot keeps backing up and turning forever. From what I gather, it is only supposed to backup turning for 3 seconds when it detects something in front of it. I've even removed the obstacle in front of it, but it still keeps backing up.
I have updated my default python interpreter in the "usrset.txt" file (I found the path to my default python interpreter by opening IDLE and entering
>> import os
>> import sys
>> os.path.dirname(sys.executable)).
I had also installed cbor and pyzmq with pip as I was prompted to do by the software (Python controlled robot did nothing before I did this). Any help would be greatly appreciated as I am a beginner with
Coppeliasim.