![]() Meanwhile the time jumps from 0 to +20s after each main loop run. SUMMARY: Only the last sequence of the controller is executed, and if it's a motion it takes several main loops before being fully executed. May the problem be that the simulation time isn't 1.0x? but at most 0.05x? (after taking off shadows, effect of lights, all objects, using 1 thread etc, as explained here: ) I couldn't find something on Softbank, i can't find an active forum concerning nao and webots anymore. The problem may come from a misconfiguration of your OpenGL drivers. Windows On Windows 10 and Windows 7, open the Start menu, go to the Program Files / Cyberbotics menu and click on the Webots R2023a menu item. macOS Open the directory in which you installed the Webots package and double-click on the Webots icon. Webots runs fine on any fairly recent hardware. Open a terminal and type webots to launch Webots. I tried to update my drivers, to take off all shadows and stuff from the simulation, as webots advices. You should check the Webots System Requirements to fix this problem. tAllLedsColor(0x000000) #red leds offĪlso, something that may be interesting: if i ask to open close the hand N times and each time print something, all the prints will be printed at once and the simulation time jump from 0:0:0 to 0:0:20 after each main loop run (+20 at each run), else, even if the simulation runs the time doesn't flow, it jumps. This can be achieved by adding this line to the plugin's 'Makefile': Then you must rebuild the plugin using Webots Text Editor or using these commands in a terminal: Make sure that the -g flag appears in the. ![]() Print("done") #to check how many runs are made The first step is to recompile the physics plugin with the -g flag, in order to add debugging information to the compiled plugin. #rospy.sleep(5) #originally i am to use webots and nao with ros ![]() In case you want it here it is (it's really basic, it's a slight modification of nao-demo-python.py): def run(self): The code should be working, it is on another person's computer. However if i ask lit leds, open hand then close hand unlit leds then the simulation will only close hand and unlit leds. if i ask to just open the hand and light the leds, after 1 run the lights will be on and after 5 runs of the main while loop it will be opened -reaaallly slowly. ![]() However only the last part of the sequences are executed, and not in a single simulation run.Į.g. For this to be possible, it is necessary that the Webots installation folder is in the PATH. I am using the NAO_demo_python controller of the latest version of webots on linux (ubuntu 18) to flash leds and open/close the hands. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |