by PedroR » Wed Sep 09, 2009 5:12 pm
by PedroR
Wed Sep 09, 2009 5:12 pm
Hi guys
I have finally put some samples together.
They can be found here:
http://robosavvy.com/RoboSavvyPages/Rob ... Servo2.tsk
http://robosavvy.com/RoboSavvyPages/Rob ... sensor.tsk
http://robosavvy.com/RoboSavvyPages/Rob ... gRC100.tsk
They grow in complexity and explore various aspects:
- Reading and setting servo positions.
- Using Conditional loops and endless loops
- Reading button presses on the CM5
- Using IF and ANDs in IFs
- Playing Motions
- Reading the RC100 remote control
- Reading the S1 sensor
TWO important and extremely useful shortcuts to have in mind:
- SPACE will add a blank line
- ENTER on a blank line will bring up the instruction selection
- ENTER on a non-blank line will enter the edit mode for the line where you can then use arrows and ENTER again to adjust the parameters of the instruction.
Otherwise you can use the mouse but it takes significantly longer and you incur in an RSI for too many double clicks
Other topics of interest to be developed in future examples:
- Using the While constructor
- Using the "Conditional Stand". It is basically a Wait While this condition is met, used to halt processing until an event happens.
- Creating functions
- Using the Callback.
- Using the "Joint Offset" parameter for Motions. This is new to Roboplus and is used for Dynamic balancing routines.
I have to get back to business now
adding the new Sparkfun items we just received to the online store.
If you have questions please post back.
As I said it will be natural that some bugs exist as I did not have the time to test the programs. However they should be good enough to get you started and give you a good understanding of the base language constructs of Roboplus.
Another challenge for you is decoding the checksum at the last bytes so that we can create .TSK files using a text editor instead of Roboplus.
The Roboplus TASK files are plain text files with a fairly understandable syntax but there is a checksum in the end - I think - which needs to be correct before the file can be opened in Roboplus and downloaded to the Robot.
Hi guys
I have finally put some samples together.
They can be found here:
http://robosavvy.com/RoboSavvyPages/Rob ... Servo2.tsk
http://robosavvy.com/RoboSavvyPages/Rob ... sensor.tsk
http://robosavvy.com/RoboSavvyPages/Rob ... gRC100.tsk
They grow in complexity and explore various aspects:
- Reading and setting servo positions.
- Using Conditional loops and endless loops
- Reading button presses on the CM5
- Using IF and ANDs in IFs
- Playing Motions
- Reading the RC100 remote control
- Reading the S1 sensor
TWO important and extremely useful shortcuts to have in mind:
- SPACE will add a blank line
- ENTER on a blank line will bring up the instruction selection
- ENTER on a non-blank line will enter the edit mode for the line where you can then use arrows and ENTER again to adjust the parameters of the instruction.
Otherwise you can use the mouse but it takes significantly longer and you incur in an RSI for too many double clicks
Other topics of interest to be developed in future examples:
- Using the While constructor
- Using the "Conditional Stand". It is basically a Wait While this condition is met, used to halt processing until an event happens.
- Creating functions
- Using the Callback.
- Using the "Joint Offset" parameter for Motions. This is new to Roboplus and is used for Dynamic balancing routines.
I have to get back to business now
adding the new Sparkfun items we just received to the online store.
If you have questions please post back.
As I said it will be natural that some bugs exist as I did not have the time to test the programs. However they should be good enough to get you started and give you a good understanding of the base language constructs of Roboplus.
Another challenge for you is decoding the checksum at the last bytes so that we can create .TSK files using a text editor instead of Roboplus.
The Roboplus TASK files are plain text files with a fairly understandable syntax but there is a checksum in the end - I think - which needs to be correct before the file can be opened in Roboplus and downloaded to the Robot.