Well, what the runThreaded() method does is to start a new thread for the 
Javaclient-Player communications (all read() methods will be performed in the 
new thread 
for example). What you have to remember is that you will now have to add a 
small delay in 
your main loop, otherwise it will execute too fast and it will occupy too much 
CPU time.

Other than that, you should really check to see if your gazebo is indeed 
running 
accelerated, or if anything else is clogging your CPU.

The Javaclient examples are really simple in nature so if one works and the 
other doesn't, 
chances are that you are missing a line of code or something. :) But since 
nothing is 
perfect, you could have also encountered a bug, which I would be happy to fix, 
provided 
that we can identify it.

By the way, there is a Javaclient mailinglist available for JC-related 
questions. Although 
the project is a bit inactive at the moment, it might be that other users could 
jump in 
and help you with your problem.

PS. Have you tried the same with Stage ?
Cheers,
Radu.

Alexandre Henrique Vieira Soares wrote:
> I run the CircleWalk example (
> http://java-player.sourceforge.net/docs/howto.pdf ) on Gazebo using
> Javaclient and everything was right.
> 
> Looking the Wall Follower example (
> http://java-player.sourceforge.net/examples/2.x/SpaceWandererExample.tgz ,
> wich were strange, with the robot 'jumping'), I saw a
> 'robot.runThreaded(-1, -1);' command.
> 
> When I put this command on CircleWalk example the same as Wall Follower
> example occured... the robot started jumping...
> 
> So, I tried to remove the 'robot.runThreaded (-1, -1);' from Wall Follower
> example and the robot stopped moving... the application only works with 
> that
> command.
> 
> Is there something I can do to make the robot movement continuous?
> 
> Sorry, I'm a beginner..
> 
> :-)
> 
> 2007/1/25, Radu Bogdan Rusu <[EMAIL PROTECTED]>:
>>
>> Hi Alexandre,
>>
>> There are many things that could cause that. I suggest you run a task
>> monitoring
>> application such as "top" to see what application clogs your CPU. Another
>> important aspect
>> of the current Gazebo version is that it needs a nVidia 3d accelerator
>> (for wxgazebo), so
>> you might want to check ("glxinfo | grep rendering") if that is working
>> fine.
>>
>> Cheers,
>> Radu.
>>
>> Alexandre Henrique Vieira Soares wrote:
>> > Hi, I'm trying do run a Java application with Gazebo and I noticed that
>> the
>> > execution of the application is making Gazebo be slow.
>> >
>> > The robot is not showing a continuous movement, it is "jumping" along
>> the
>> > time. I have already noticed that the Gazebo timer (the time that is
>> shown
>> > on the interface) is stopping, the same as the robot.
>> >
>> > How can I run Gazebo continuously?
>> >
>> > Thanks.
>> >
>> > PS.: The application can be found in
>> >
>> http://www.lsi.cefetmg.br/~ahvsoares/robotica/exemplos/WallFollowerExample-Gazebo.tgz
>>  
>>
>> >
>> > (Needs Javaclient API).

-- 
| Radu Bogdan Rusu | http://rbrusu.com/
| http://www9.cs.tum.edu/people/rusu/
| Intelligent Autonomous Systems
| Technische Universitaet Muenchen

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Playerstage-gazebo mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo

Reply via email to