Asked — Edited

Script Tutorial

So I have found some great help in learning from Rich and others who post script examples for us to learn from... However, I cant find a really good post with lots of examples as I learn best from this kind of thing... Anyone have a link to any threads that is filled with good examples to learn from ? ( i have read most of the popular tutorials..ect just looking for more of the hidden gems)


ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

#1  

I have a wall-e project in the public cloud you can download. There are a lot of scripts in it.

#3  

@Jayutmb You know the ARC download comes full of example projects and examples of how to use each control... They can be found in the file menu...

#4  

Yea Richard, but i like the style of tutorials like Rich has posted.. they really helped make sense of what I was looking at since I am teaching myself from knowing zip ( my background is in medicine far removed from scripting):(

#5  

@Jayutmb... No problem... Sometimes if you have something specific it might be best to just ask here... 2 reasons... 1) beats trolling through old threads looking for an answer and ... 2) Some people currently reading would benefit to from your questions... it jogs their memory on things they might have wanted to ask as well...

So true, @Rich has some serious programing skills... sometimes the way he does things makes me feel embarrassed as my code is usually not as well "polished" as his...

United Kingdom
#6  

Well I'm back home now, at least for a few days.

Give me an idea of what you want to achieve and I'll knock up an example script with explanation of how to achieve it step by step (provided it's nothing too extravagant such as autonomous returning to a charging station or 3d mapping from the ping sensor and encoders or gps etc.)

#7  

Is it possible from within ARC, to set a WP (short distance, not GPS) such as 10 feet, than have the robot navigate to that point, avoiding obstacles along the way?

United Kingdom
#8  

Yes it's possible however;

  1. How is the waypoint set?
  2. How does the robot measure the distances and angles that it's moved?

Avoiding obstacles is easy with the native controls for the ping sensor or by using the ping roam script I wrote (and modifying it to suit your needs). But in order to script movement to a waypoint the above information is needed.

Unless you add in sensors the robot will no know where it is, where it's going or where it has been. Those sensors could be many different types and connect digitally/serially, by analogue or via I2C. To write a script, or even guide you on writing one, without this information is impossible without covering every combination of methods.