Quantcast

the instruction sleep with SetSpeed

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

the instruction sleep with SetSpeed

light86
hi i've notice when i use sleep(10) after the instruction
p2dProxy.SetSpeed
the motion of the robot take 10 seconde
Please I want to know why
Thank you
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: the instruction sleep with SetSpeed

Rich Mattes-2
On 05/31/2013 04:56 AM, light86 wrote:
> hi i've notice when i use sleep(10) after the instruction
> p2dProxy.SetSpeed
> the motion of the robot take 10 seconde
> Please I want to know why
> Thank you
>
>
>

What do you expect to happen?  You told your robot to move with
SetSpeed().  Then you didn't tell it anything after that so it keeps
doing the last thing you told it to do.

Rich

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Playerstage-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/playerstage-developers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: the instruction sleep with SetSpeed

light86
dear thank you
when i don't use sleep after setspeed the motion of the robot don't take a longtime but when i use sleep after setspeed the motion is longer
Thank you
Loading...