Quick Scripts
Description
Commands may be sent to the N9 Robot, one at a time through the Shell or typed out beforehand in the Code Editor window as a script.
To execute a script in Code Editor on the physical hardware, select Run > Run current script, press the Run current script icon on the toolbar shown below, or use the hotkey F5.
Alternatively, scripts may be executed in the Simulator, no physical hardware required, by selecting Run > Simulate, selecting the Simulate icon on the toolbar shown below or use the hotkeys ctrl + F6.
Quick Scripts
The NorthIDE provides several quick scripts that can be run from the Tools menu or accessed with the associated hotkeys.
These quick scripts are:
Check connection (ctrl + 1): Sends a get_info() request to the controller to ensure it is properly connected and is responding.
Home robot (ctrl + 2): Sends a home_robot() call to the robot, initiating its home routine. Automatically turns servos back on after a servo off event.
Servo off (ctrl + 3): Disables the motors in the robot joints to allow it to be posed by hand. The robot needs to be homed after you are done manually posing it before running another script. However, as many positions as desired may be captured using the Locator before rehoming the robot.
Servo on (ctrl + 4): Engages motor power on all axes to hold the current position. Does not replace the required homing after a servo off event.
Joystick mode (ctrl + 5): Enables joystick control of the system. If no gamepad is found, keyboard control is enabled.
NOTE: For these scripts to work properly, the C9 network address and network serial address must be properly set in the Connection Manager.
IDE Guides