Search found 4 matches

by TonyStark
08 Oct 2014, 19:48
Forum: General questions
Topic: Help with threashold
Replies: 2
Views: 2009

Re: Help with threashold

Ok, thanks for your effort and your patience. I made lot of changes and improve a lot my code and algorithm, and I achive my purpouse. My robot reaches the target finally. I'm gona try to make a security behaviour in case it spots a person or an obstacle in its way to the target, but I have one algo...
by TonyStark
27 Sep 2014, 20:14
Forum: General questions
Topic: Help with threashold
Replies: 2
Views: 2009

Help with threashold

Hello everyone. I want to know how to do a threashold. I'm trying to make that a robot moves to one point, and when arrives at it then moves to another point. The problem is that I'm using as condition for the "if" that the robot reaches the coordinates of a dummy (which is the target poin...
by TonyStark
24 Sep 2014, 20:14
Forum: General questions
Topic: How to execute only once a function
Replies: 2
Views: 2256

Re: How to execute only once a function

Well, thanks for asnwering. I think I understand what you propose, but I don't understand how to use that threasholddistance. I have a variable which gives the distance to a position (just applying the Pythagoras theorem ), that is clear and ok. But I don't know how to do that threashold. It's somet...
by TonyStark
23 Sep 2014, 20:20
Forum: General questions
Topic: How to execute only once a function
Replies: 2
Views: 2256

How to execute only once a function

Hi again people! Sorry for being a pain in the neck but I want to know how can I do something in v-rep. I don't know if ~= means not equal or how is that in lua. And I don't know either how can I do that a "if" function only be executed once. For example: if (x~=y) then "move to y&quo...