Skip to main content

JetBot

Inherits from: WheeledRobot

JetBot

Initialize a JetBot robot instance.
required
IP address of the JetBot.
defaults to “8040”. Port number for locomotion control. Defaults to “8040”.
defaults to “8050”. Port number for camera access. Defaults to “8050”.

getPosition

getPosition is not implemented for JetBot

getOrientation

getOrientation is not implemented for JetBot

getImage

Return the image of camera. JetBot only has one camera so the arguments are ignored.
required
unused, jetbot only has one camera
required
unused, jetbot only has rgb images
Imagerequested image and it capture parameters

setMotors

Sets the speed of the motors for the JetBot. These values should be [-1.0, 1.0]
required
Speed of the left motor [-1, 1]
required
Speed of the right motor [-1, 1]

stop

Stops the motors of the JetBot

setCarControls

Control the JetBot using ackermann steering. Does not adjust speed, only steering
required
yaw [-1, 1] radians
None
None

setCarTargetSpeed

Set the speed of the JetBot for Ackermann control. Does not adjust steering
required
speed [0, 1]
Reduce the speed of the jetbot since 1.0 for jetbot is considerably faster than AirGenCar
None

rotate

Rotate the JetBot in place
required
Throttle rate to apply during rotation. Positive rotates right, negative rotates left
required
How long to rotate in seconds
defaults to 8. Scaling factor for the rate to make it behave similar to simulation. Defaults to 8.0

moveByVelocity (inherited)

Move the robot by setting linear and angular velocity.
required
VelocityLinear velocity object containing x_vel component
required
VelocityAngular velocity object containing z_vel component
defaults to None. Optional duration in seconds to move for before stopping. Defaults to None.