public class RobotMQTT
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected char |
reality |
protected int |
robotId |
protected RobotMqttClient |
robotMqttClient |
Constructor and Description |
---|
RobotMQTT(int robotId,
RobotMqttClient mqtt,
char reality)
RobotMQTT class
|
Modifier and Type | Method and Description |
---|---|
void |
handleSubscription(Robot robot,
MqttMsg m)
Handle localization related MQTT subscriptions
|
void |
robotCreate(double x,
double y,
double heading)
Create robot instance on the simulator
|
protected RobotMqttClient robotMqttClient
protected int robotId
protected char reality
public RobotMQTT(int robotId, RobotMqttClient mqtt, char reality)
robotId
- mqtt
- MQTT objectreality
- reality of the robot, currently only support 'V'