C# Класс CSharpSlam.RobotControl

Represents the control functions of a Neobotix robot and the visual appearance on the computer screen.
Наследование: IRobotControl
Показать файл Открыть проект Примеры использования класса

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