C# 클래스 CSharpSlam.RobotControl

Represents the control functions of a Neobotix robot and the visual appearance on the computer screen.
상속: IRobotControl
파일 보기 프로젝트 열기: samub/CSharpSlam 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CalculatePose void
GetLaserScannerData ].double[
PoseChanged void
RequestLaserScannerDataRefresh void
StartSimulation void
StopSimulation void

공개 메소드들

메소드 설명
ClearMap ( ) : void

Clears the layer data collected for the map.

Connect ( string host ) : int

Function for connecting to the robot.

Disconnect ( ) : void

Disconnects the robot.

GetLayers ( ) : Layers

TODO: test function, should be removed later

GetWheelSpeed ( ) : double[]
OnSimulationStateChanged ( ) : void

Trigger for the simulation state change event.

RobotControl ( ) : System

Initializes a new instance of the RobotControl class.

SetSimulationState ( SimulationCommand command ) : void

Starts, stops or resets the V-REP EDU simulation according to the given command.

SetWheelSpeed ( double linAng ) : void
SetWheelSpeed ( double r, double l ) : void

Sets the speed of the joints of the robot.

비공개 메소드들

메소드 설명
CalculatePose ( object sender, EventArgs e ) : void

Switch Pose data between Localization and Mapbuilder classes. Localization calculates the new Pose data from the given layers by the Mapbuilder and then give it back to the sender.

GetLaserScannerData ( ) : ].double[

Collects the laser scanner data from the simulator.

PoseChanged ( object sender, EventArgs e ) : void

Switch Pose data between Localization and Mapbuilder classes when any changes happened.

RequestLaserScannerDataRefresh ( object sender, EventArgs e ) : void

Request to refresh the laser scanner data.

StartSimulation ( ) : void

Starts the simulation in the V-REP EDU application and begins drawing the map on a new thread.

StopSimulation ( ) : void

Stops the simulation in the V-REP EDU application and aborts the map drawing thread.

메소드 상세

ClearMap() 공개 메소드

Clears the layer data collected for the map.
public ClearMap ( ) : void
리턴 void

Connect() 공개 메소드

Function for connecting to the robot.
public Connect ( string host ) : int
host string Address of the robot.
리턴 int

Disconnect() 공개 메소드

Disconnects the robot.
public Disconnect ( ) : void
리턴 void

GetLayers() 공개 메소드

TODO: test function, should be removed later
public GetLayers ( ) : Layers
리턴 Layers

GetWheelSpeed() 공개 메소드

public GetWheelSpeed ( ) : double[]
리턴 double[]

OnSimulationStateChanged() 공개 메소드

Trigger for the simulation state change event.
public OnSimulationStateChanged ( ) : void
리턴 void

RobotControl() 공개 메소드

Initializes a new instance of the RobotControl class.
public RobotControl ( ) : System
리턴 System

SetSimulationState() 공개 메소드

Starts, stops or resets the V-REP EDU simulation according to the given command.
public SetSimulationState ( SimulationCommand command ) : void
command SimulationCommand The given command.
리턴 void

SetWheelSpeed() 공개 메소드

public SetWheelSpeed ( double linAng ) : void
linAng double
리턴 void

SetWheelSpeed() 공개 메소드

Sets the speed of the joints of the robot.
public SetWheelSpeed ( double r, double l ) : void
r double The right joint.
l double The left joint.
리턴 void