Webots

Webots

Interest Group Board Entries

Daniel Rojas's picture
4 years 8 months ago
 

Hello!

On OS X 10.8.2 I cannot get the controller built. When running from inside Webots, I get the error
"sh: make: command not found"
However, I can run make from the terminal, I corrected Webots home directory in the Makefile and I recieve the reply
"make: Nothing to be done for `mini_dog_controller.cpp'."
What should I do? Thank you very much!


Daniel Rojas's picture
4 years 8 months ago
 

I should add that this is referring to exercise 3 of this year's lectures.. All older posts seem to be from previous years!


Olivier Michel's picture
4 years 7 months ago
 

Hi Daniel,

Instead of typing "make", did you try to type "make mini_dog_controller"? It should force the build of the executable file.

However, I don't understand why it doesn't work straight out of the box from inside Webots. Did you install the make command from XCode or from somewhere else? The recommended way is to install XCode and ensure no other make command conflict with the one provided by XCode.

-Olivier


Daniel Rojas's picture
4 years 7 months ago
 

Hi!
Thank you, yes, I tried different combinations of the make command and I did everything as recommended.

However, I have found the solution :-)
Turns out that the newer Xcode versions have all the utilities embedded in the Xcode IDE and they are (initially) not available to other appilcations. To make it work, you need to launch Xcode -> go to Xcode Menu, Preferences --> Downloads --> Components --> where it says "Command Line Tools", click Install --> DONE!

Maybe this can save someone a few hours of frustration and googling. :-)


Olivier Michel's picture
4 years 7 months ago
 

Thanks, it really helps. We will add this in the Webots documentation for Mac OS X.


Olivier Michel's picture
4 years 7 months ago
 

That will be included in Webots 7.0.3 documentation...


Tanis Mar's picture
5 years 6 months ago
 

Hi again Oliver,
I would like to know if there is any known bug between Webots and openSUSE 11.4. I am trying to run it in these OS, which is the one installed at Humboldt's University PC-pools, and when executing, the first selection menu (the one where one can choose 'Your project', 'Guided Tour', 'URBI 2.0', etc) opens correctly, but when I select any option, the full window opens briefly, but after like one second it closes automatically. When running it from the terminal, the following error is given:
"alex mar 36 ( webots ) $ webots
The program 'webots-bin' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
(Details: serial 4911 error_code 8 request_code 154 minor_code 5)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
"
Thank in advance for your attention


Olivier Michel's picture
5 years 6 months ago
 

Hi Tanis,

Webots should work on openSUSE. The crash is likely to come from the driver of the graphics card installed there. You should try to upgrade the graphics driver to the latest version. If that doesn't work, please submit a full bug report at http://www.cyberbotics.com/bug

-Olivier


Tanis Mar's picture
5 years 6 months ago
 

Hi Oliver,
you were right. It took us some time to update and set properly the latest graphic card drivers, but now it is working fine. Thank you!
Tanis


Tanis Mar's picture
5 years 6 months ago
 

Hi again...
After fixing the graphic problems, I am trying to try the matlab based controllers/worlds, but matlab seems not to respond: The Matlab-based worlds open correctly, webots console prints the Matlab initialization with the version and so on, but afterward nothing happens. Robots stay still and the matlab console is not opened.
Matlab version is the 7.12.0.635 (R2011a) 64-bit (glnxa64), and the Webots one is the Linux 64 bit. I also checked that perl and gcc packages are installed:
'alex mar 10 ( Desktop ) $ perl --version
This is perl 5, version 12, subversion 3 (v5.12.3) built for x86_64-linux-thread-multi'
'alex mar 9 ( Desktop ) $ gcc --version
gcc (SUSE Linux) 4.5.1 20101208 [gcc-4_5-branch revision 167585]'
do you know which could be the problem?


Olivier Michel's picture
5 years 6 months ago
 

It should work. Please submit a bug report at http://www.cyberbotics.com/bug so that our experts can have a closer look at it and get back to you.


Tanis Mar's picture
5 years 6 months ago
 

Hi Oliver

I would like to know if it is possible to change the computer to which my license is tied. I have a similar problem to which Pablo Marin had: I registered webots in an old laptop, and now we are movingto a newer one, so I would need to be able to run the licensed webots in the new one. Is that possible?
Thanks in advance
Tanis


Olivier Michel's picture
5 years 6 months ago
 

Hi Tanis,

Yes, of course, that is possible. You simply need to install Webots on your new laptop and enter your login data (e-mail and password) into the Preferences/License of Webots. This way, you can install Webots on an unlimited number of computers (but use only one instance at a time). Please let me know if that doesn't work as expected.

-Olivier


Tanis Mar's picture
5 years 6 months ago
 

Hi Oliver,
Thank you very much, I tried it yesterday and it worked fine. Somewho I though that the license was tied up to one specific computer, but I see it ain't.
Best, Tanis


Ivan Rygaev's picture
5 years 6 months ago
 

Hi, Oliver,

When I try to build the controllers for swissRobots on my MacBook it says
sh: make: command not found

How can I fix this?

Thank you.

Ivan.


Olivier Michel's picture
5 years 6 months ago
 

Hi Ivan,

You probably need to install XCode on your Mac to get gcc, g++ and make installed.

-Olivier


Ivan Rygaev's picture
5 years 6 months ago
 

Thanks, that worked!


Jekaterina Novikova's picture
5 years 6 months ago
 

Hello,

is it posible that swissRobot's simulation gives slightly different results (number of clusters, number of noise) on different computers, although all the parameters are the same?

Best regards,
Jekaterina


Olivier Michel's picture
5 years 6 months ago
 

Hi Jekaterina,

Yes, this is probably due to the fact that the supervisor program uses the computer's real time whereas it should use the simulation's virtual time to be able to reproduce the same result across different computers. Please see the patch submitted by Martin on this forum to correct the problem. Let us know if that helps.

-Olivier


Jekaterina Novikova's picture
5 years 6 months ago
 

Thanks, Oliver!


Steffen Kaden's picture
5 years 6 months ago
 

everytime i try to change the range of the sensor, webots just crashes.
there isn't a dialog with an error message (win7 just shows a dialog with something like: it doesn't work, therefore it has to be terminated)


Olivier Michel's picture
5 years 6 months ago
 

Hi Steffen,

Before changing anything to the world in the scene tree window, you should:

1) Stop the simulation (stop button).
2) Revert the simulation (to be in the initial situation of the world)
3) Make any modification in the scene tree (in stop mode).
4) Save the changes.
5) Revert the simulation again.
6) Run the simulation.

Please let me know if that works better.

Also, can you tell me (or send me) the world file that causes this problem, so that I can try to reproduce the crash and eventually fix it.

-Olivier


Steffen Kaden's picture
5 years 6 months ago
 

Thanks

it was just a simple fault of mine.

at the beginning the simulation is running but the robots don't move, because the controllers are not compiled
i thought that the simulation was stopped but it was not

maybe i was just a little bit tired ;)

Thanks again


Chong Shang's picture
5 years 6 months ago
 

My problem is webots shows a dialog "You are not allowed to use webots on more than 1 computer" However I only use it in my own ONE computer!


Olivier Michel's picture
5 years 6 months ago
 

Hi Chong,

You should try to log-in to http://www.cyberbotics.com/my_account/profile to check whether or not you are using a license on another computer and possibly cancel it to fix the problem. Let me know if that works. I will also have a look in the database and try to delete all the instances of your license if any.

-Olivier


Daniel Heid's picture
5 years 7 months ago
 

I have a problem with opening the swissRobot world. Whenever I open it, I first get the error messages and after that I get following error message:
"This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information."

Anyone has seen that before and knows what's the problem?


Olivier Michel's picture
5 years 7 months ago
 

Hi Daniel,

I also had this problem with the swissRobot world and could fix it by changing the resolution of the texture image located in the worlds folder. Some Intel graphics cards (including mine and probably yours) actually don't support non-standard texture resolutions. Rescaling the image with a resolution in powers of 2 fixed the problem, like instead of a resolution of 2500x600, you should scale it down to a resolution of 2048x512. You can use the attached image instead of the one you have and it should fix the problem. If not, please let me know.

-Olivier


Daniel Heid's picture
5 years 7 months ago
 

Hi Olivier,

Thx for your help but unfortunately it still doesn't work. I get the same the same error message as before. I just replaced the graffiti image, do I need to do something additional? Or is it a whole other problem?

-Daniel


Olivier Michel's picture
5 years 7 months ago
 

Hi Daniel,

Then, this might be a problem with your graphics card. I guess you have an Intel graphics card, right? These cards are not well supported by Webots and sometimes provoke crashes. Can you try to update the driver?

-Olivier


Daniel Heid's picture
5 years 7 months ago
 

Hi Olivier

I updated my driver and it still doesn't work. My notebook's 5 years old and so is my graphics card. So far everything worked so I hope I won't have problems with the next excercises. Thanks for your help, I very appreciate it.

-Daniel


Olivier Michel's picture
5 years 6 months ago
 

I guess you have an Intel graphics card, right?
Maybe you can try to replace the texture with any other texture found in a working Webots simulation. This could fix the problem...


Martin Schneider's picture
5 years 7 months ago
 

I've some trouble with with capturing the videos for exercise 4. When i run the simulation with and without capturing, i get in both cases different results for "cluster" and "cluster + noise".
For example: When i run the simulation with 2 robots and without capturing. I get cluster: 8 and cluster + noise: 9. The same with capturing i get 4 and 18. (values are fictional!) If i do it again without capturing i get the first value-pair.
In my understanding such things should't happen in a simulation. Any ideas?

Greeting Martin


Olivier Michel's picture
5 years 7 months ago
 

Hi Martin,

Please check that all your robots have their synchronization field set to TRUE (in the scene tree). If not, then, the simulation results may be affected by the CPU load of your computer. Also, be sure you start in the same initial conditions. The best way to achieve this is probably to stop the simulation, quit Webots, relaunch it, possibly start-up the movie recording and start the simulation.

Please let me know if that helps.

-Olivier


Martin Schneider's picture
5 years 7 months ago
 

Nope, restart, doesn't fix it. And all robots had there their synchronization field set to true.


Martin Schneider's picture
5 years 7 months ago
 

Normaly, simulationt-ime should be different from real-time, so it should not be necessary to change the simulation duration.
Also it makes the results not comparable, when everyone has to adapt the simulation duration depending on his local CPU capacity.


Olivier Michel's picture
5 years 7 months ago
 

I agree with you. However, I don't understand why you get different results when making a movie and not making a movie. Are you the only one out there with this problem?

-Olivier


Martin Schneider's picture
5 years 7 months ago
 

I look into the sourcecode of the supervisor and found this:
void run(){

std::cout << "supervisor starts" << std::endl;

//Leave the loop after SIMTIME seconds
timeval start,final;
gettimeofday(&start,NULL);
do {
gettimeofday(&final,NULL);
//std::cout<=SIMTIME )
break;
} while (step(TIMESTEP) != -1);

I must say that, i'm not really familiar with webbots. But in my understanding the break condition is checked with the systemtime! Not with "simulation time"! I tried to run the simulation in "fast mode" and got another result. Witch underlines this problem.
So my question is. Is ther a way to connect this break condition with the speed of the simulation?


Martin Schneider's picture
5 years 7 months ago
 

With Olivers help i modifed the function to check the simulation time and NOT the real time:

//Leave the loop after SIMTIME seconds
do {
if (getTime() >= SIMTIME)
break;
} while (step(TIMESTEP) != -1);

you find this lines in the supervisor.cpp from line 53 on.


Lyes SAI's picture
5 years 7 months ago
 

I had the same problem as Martin Schneider, the results obtained without capturing a movie are different from those obtained when capturing a movie is running !


Olivier Michel's picture
5 years 6 months ago
 

Hi Lyes,

Did you try to apply the patch Martin submitted in this group? I believe it fixed the issue. Your original program uses the computer's real time whereas it should use the simulation virtual time to produce similar results under different conditions (making a movie or with a different computer CPU load). Please try it and confirm us that it does fix the problem also for you.

-Olivier


Lyes SAI's picture
5 years 6 months ago
 

Hello Olivier,
Yes, I have tried the patch and it worked very well,
thank you.


Norbert Nestler's picture
5 years 7 months ago
 

I have a problem with the function "Make Movie". I installed Webots on another computer to have a faster simulation, which worked fine. But now everytime I make a movie and watch it right afterwards, it is in extreme slow motion. When I recorded the video, the simulation ran with almost real time speed. Any suggestions?


Olivier Michel's picture
5 years 7 months ago
 

Hi Norbert,

Please have a look at the last question and answer of this FAQ: http://www.cyberbotics.com/guide/section9.4.php
It explains how to tune parameters to set the desired speed for movies. Let me know if that helps.

-Olivier


Norbert Nestler's picture
5 years 7 months ago
 

Thank you, that kind of worked. The videos now run in real time but are still too large to capture the whole 104 seconds of the simuilation. I guess 15 seconds of the simulation will have to suffice.


Pages

Creative Commons License