nxt_movement.pl -- NXT Mindstroms - simple movement.
- author
- - Piotr Hołownia
- license
- - GNU General Public License
nxt_set_robot(+WheelCircumference, +AxleLenght, +LeftMotor, +RightMotor, +Reverse, +TouchPort, +SoundPort, +LightPort, +UltrasonicPort)- Changes the robot's settings. !! Reverse not implemented!
nxt_stop- Stops the robot.
nxt_go(+Speed)- Moves the robot forward (if Speed is greater than 0)
or backward (if Speed is smaller than 0).
Speed is the rotational speed of the wheel in degrees per second.
Wheels stop when nxt_stop predicate is called.
If the robot senses an obstacle, it will stop.
nxt_go(+Speed, +Option)- Moves the robot forward (if Speed is greater than 0)
or backward (if Speed is smaller than 0).
Speed is the rotational speed of the wheel in degrees per second.
Wheels stop when nxt_stop predicate is called.
If the robot hits an obstacle, it will try to push it.
Option is:
- force
-
nxt_go(+Speed, +Angle)- Moves the robot forward (if Speed is greater than 0)
or backward (if Speed is smaller than 0).
Speed is the rotational speed of the wheel in degrees per second.
Wheels stop after revolution of Angle (in degrees).
If the robot senses an obstacle, it will stop.
nxt_go(+Speed, +Angle, +Option)- Moves the robot forward (if Speed is greater than 0)
or backward (if Speed is smaller than 0).
Speed is the rotational speed of the wheel in degrees per second.
Wheels stop after revolution of Angle (in degrees).
If the robot hits an obstacle, it will try to push it.
Option is:
- force
-
nxt_go_sec(+Speed, +Time)- Moves the robot forward (if Speed is greater than 0)
or backward (if Speed is smaller than 0).
Speed is the rotational speed of the wheel in degrees per second.
Wheels stop after specified time (in seconds).
If the robot senses an obstacle, it will stop.
nxt_go_sec(+Speed, +Time, +Option)- Moves the robot forward (if Speed is greater than 0)
or backward (if Speed is smaller than 0).
Speed is the rotational speed of the wheel in degrees per second.
Wheels stop after specified time (in seconds).
If the robot hits an obstacle, it will try to push it.
Option is:
- force
-
nxt_go_cm(+Speed, +Distance)- Moves the robot forward (if Speed is greater than 0)
or backward (if Speed is smaller than 0).
Speed is the rotational speed of the wheel in degrees per second.
Wheels will stop, if the Distance (in cm) is reached.
If the robot senses an obstacle, it will stop.
nxt_go_cm(+Speed, +Distance, +Option)- Moves the robot forward (if Speed is greater than 0)
or backward (if Speed is smaller than 0).
Speed is the rotational speed of the wheel in degrees per second.
Wheels will stop, if the Distance (in cm) is reached.
If the robot hits an obstacle, it will try to push it.
Option is:
- force
-
nxt_go_in(+Speed, +Distance)- Moves the robot forward (if Speed is greater than 0)
or backward (if Speed is smaller than 0).
Speed is the rotational speed of the wheel in degrees per second.
Wheels will stop, if the Distance (in inches) is reached.
If the robot senses an obstacle, it will stop.
nxt_go_in(+Speed, +Distance, +Option)- Moves the robot forward (if Speed is greater than 0)
or backward (if Speed is smaller than 0).
Speed is the rotational speed of the wheel in degrees per second.
Wheels will stop, if the Distance (in inches) is reached.
If the robot hits an obstacle, it will try to push it.
Option is:
- force
-
nxt_go_cm_sec(+Distance, +Time)- Moves the robot forward (if Distance is greater than 0)
or backward (if Distance is smaller than 0).
Robot reaches the Distance (in cm) in Time (in seconds).
If the robot senses an obstacle, it will stop.
nxt_go_cm_sec(+Distance, +Time, +Option)- Moves the robot forward (if Distance is greater than 0)
or backward (if Distance is smaller than 0).
Robot reaches the Distance (in cm) in Time (in seconds).
If the robot hits an obstacle, it will try to push it.
Option is:
- force
-
nxt_go_in_sec(+Distance, +Time)- Moves the robot forward (if Distance is greater than 0)
or backward (if Distance is smaller than 0).
Robot reaches the Distance (in inches) in Time (in seconds).
If the robot senses an obstacle, it will stop.
nxt_go_in_sec(+Distance, +Time, +Option)- Moves the robot forward (if Distance is greater than 0)
or backward (if Distance is smaller than 0).
Robot reaches the Distance (in inches) in Time (in seconds).
If the robot hits an obstacle, it will try to push it.
Option is:
- force
-
nxt_turn(+Speed, +Angle)- Rotates the robot in place to its left (if Angle is greater than 0)
or right (if Angle is smaller than 0).
Speed is the rotational speed of the wheel in degrees per second.
Wheels stop after revolution of Angle (in degrees).
nxt_turn_degrees(+Speed, +Degrees)- Rotates the robot in place to its left (if Degrees is greater than 0)
or right (if Degrees is smaller than 0).
Speed is the rotational speed of the wheel in degrees per second.
Wheels will stop, when specified revolution (Degrees) of the robot is reached.
nxt_turn(+Radius, +Degrees, +Time)- Makes robot turn with specified turning radius (Radius)
moving forward (if Degrees is positive) or backward (if negative).
Robot turns left (if Radius is positive) or right (if negative).
Robot reaches the specified revolution (Degrees) in Time (in seconds).
If the robot senses an obstacle, it will stop.
nxt_turn(+Radius, +Degrees, +Time, +Option)- Makes robot turn with specified turning radius (Radius)
moving forward (if Degrees is positive) or backward (if negative).
Robot turns left (if Radius is positive) or right (if negative).
Robot reaches the specified revolution (Degrees) in Time (in seconds).
If the robot hits an obstacle, it will try to push it.
Option is:
- force
-