Dexter Development Environment is a tool for
creating JavaScript programs.
In addition, it has special support for controlling the Dexter robot.
The User Interface
DDE has 4 panes.
The Editor pane is in the upper left. Here's where you enter JavaScript
to control Dexter. You can type or paste in code. You can also use the
, , and
menus in the menu bar to insert vanilla JavaScript or
DDE-specific code.
The Output pane is in the lower left. DDE displays useful information here.
The Documentation pane is in the upper right.
The Misc pane is in the lower right. It can contain a variety of content
including a dialog for making instructions and a simulation of Dexter where
you can test out Jobs without having a real Dexter.
Evaluation
To run JavaScript source code, you feed it to a function called eval.
DDE makes this easy with its button.
If there is a text selection when you click the button, that text will
be evaled. If there's not, the whole content of the Editor pane will be evaled.
By evaling early and often, you can test small snippets of JavaScript and
make debugging your program easier.
Try this:
Select the following JavaScript source code: 2 + 3 * 4
Click the button in the header for the Output pane.
You should see 14 in the Output pane.
Select the code again but this time copy it with Ctrl-C (on Mac, cmd-C).
Paste it by clicking in the Editor pane and hitting Ctrl-V (on Mac, cmd-V)
Click the button
You should see 14 printed again in the Output pane.
Select just 3 * 4 in the Editor pane.
Click the button
You should see 12 in the Output pane.
If you don't know JavaScript, insert items from the
menu and play.
Jobs
Dexter is controlled by writing a small app which we call a "Job".
This wraps up a sequence of instructions to be run, one after another,
along with some other information, for controlling a robot.
You can insert example Jobs from the menu.
Clear your editor by selecting the text and hitting the DELETE
or BACKSPACE key.
Choose Jobs Menu/Insert Example/Dexter-moving
Most of this text is comments explaining this Job.
Click the button
Observe a new gray button in the Output pane header with the name of the
Job that you just defined.
Click this button to start the Job
Observe an animation of Dexter in the Simulation pane.
The button changes colors to indicate the Job's status.
It turns green when its Job is running and purple when its done.
A tooltip on the button appears when you hover the mouse over it.
Clicking a Job's button will start it if its stopped, and
stop it if its running.
There's a LOT more documentation.
We encourage you to read the User Guide.
At the bare minimun, please click the
?
in the upper right of the Doc pane for a list of tutorials,
one of which, "Help System", explains DDE's numerous help facilities.
Articles
Misc
Dexter.default:
ⓘ Pause
Expand
simulate
real
both
JS debugger
🥚
Move Dur: s
ⓘ
X: Y: Z:
Alignment:
J1: J2: J3: J4: J5: J6: J7:
New Ctrl n
Open... Ctrl o
Load...
Load & start Job...
Download file...
Upload file...
Upload folder...
Insert file...
Insert file path
Save Ctrl s
Save As... shift Ctrl s
Auto Save
Remove
Use NPM
Preferences...
into editor...
into cmd input...
Undo Ctrl z
Redo
Find Ctrl f
Find Next Ctrl g
Find Prev shift Ctrl g
Replace...
Fold All
Unfold All
Select expr alt-click
Select All Ctrl a
Indent Sel: shift-tab
Pretty Print
Animate UI
Right click menu in Editor pane has more operations.