cz.cuni.amis.pogamut.usar2004.communication.messages.usarcommands
Class SetViewpoint
java.lang.Object
cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
cz.cuni.amis.pogamut.usar2004.communication.messages.usarcommands.SetViewpoint
public class SetViewpoint
- extends cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
This command is used to manage the viewpoint.
This command sets the viewpoint of the specified Unreal Client to a robot’s
camera. The unreal client is defined by �{Client ip}’ where �ip’ is the
client’s IP address. Please note USARSim doesn’t support the loopback ip
address. So don’t use “127.0.0.1” as the parameter. The robot is specified by
�{Robot string}’ where �string’ is the robot’s name. And the camera is
specified by �{Name string}’ where �string’ is the camera’s name. Once the
client’s viewpoint is set, we can NOT manually change it until we release the
viewpoint control. To release the control, we send another SET command
without �{robot name}’. For example, we can send “SET {Type Camera} {Client
10.0.0.2}” to release the viewpoint control on client 10.0.0.2.
We can use this command at anytime and anyplace. This command can be sent
either from a robot’s controller or from other applications such as the
ImageServer.
Corresponding GameBots command is SET.
Type
protected String Type
Name
protected String Name
Robot
protected String Robot
Client
protected String Client
SetViewpoint
public SetViewpoint(String Robot,
String Name,
String Client)
SetViewpoint
public SetViewpoint()
- WARNING: this is empty-command constructor, you have to use
Setters to fill it up!
SetViewpoint
public SetViewpoint(SetViewpoint original)
- Cloning constructor.
getType
public String getType()
getName
public String getName()
SetViewpointName
public SetViewpoint SetViewpointName(String Name)
getRobot
public String getRobot()
SetViewpointRobot
public SetViewpoint SetViewpointRobot(String Robot)
getClient
public String getClient()
SetViewpointClient
public SetViewpoint SetViewpointClient(String Client)
toString
public String toString()
- Overrides:
toString in class cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
toHtmlString
public String toHtmlString()
toMessage
public String toMessage()
Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.