Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Outline

ComponentWebotsPTUServer Component

ComponentWebotsPTUServer-ComponentImage

Component Short Description:

PTU = Pan Tilt Unit to rotate a camera in the webots simulator.

pan = rotate left/right, tilt = rotate up/down. The keys JL rotate left/right, the keys IK rotate up/down. (click in webots graphics window first)

ComponentMode:

  • servo: PTU can move
  • move: PTU can move and sends data with position and sends event if target position is reached

Example program:

DomainPTU::CommPTUMoveRequest data;
// positive=left negative=right [radians]
data.setPan(pan);
// positive=down negative=up [radians]
data.setTilt(tilt);
// move modes:
// PAN_RELATIVE TILT_RELATIVE PAN_TILT_RELATIVE
// PAN_ABSOLUTE TILT_ABSOLUTE PAN_TILT_ABSOLUTE
data.set_move_mode(DomainPTU::PTUMoveFlag::PAN_TILT_ABSOLUTE);
COMP -> movePTUSendServiceOut->send(data);

other similar components:

Component-Datasheet Properties

Table: Component-Datasheet Properties
Property Name Property Value Property Description
MarketName ComponentWebotsPTUServer
Supplier Servicerobotics Ulm
Homepage https://wiki.servicerobotik-ulm.de/directory:collection
Purpose PTU = Pan Tilt Unit to rotate a camera in the webots simulator.

Component Ports

baseStateQueryClient

Documentation:

Reads on request the position etc. of the mobile robot: CommBasicObjects.CommBaseState

baseStateClient

Documentation:

Reads periodically the position etc. of the mobile robot: CommBasicObjects.CommBaseState

devicePoseStateServer

Documentation:

Writes periodically the position and orientation of the PTU: CommBasicObjects.CommDevicePoseState

goalEventServer

Documentation:

Sends an event: DomainPTU.PTUMoveStatus

moveSendServer

Documentation:

Reads periodically movement commands: DomainPTU.CommPTUMoveRequest

moveQueryServer

Documentation:

request: DomainPTU.CommPTUMoveRequest

answer: DomainPTU.CommPTUMoveResponse

stateQueryServer

Documentation:

Writes on request: DomainPTU.CommMobilePTUState

Component Parameters: ComponentWebotsPTUServerParams

Internal Parameter: webots

Documentation:

Table: Internal Parameter webots
Attribute Name Attribute Type Attribute Value Attribute Description
robotName String "PanTiltUnit"

the controller name of PanTiltUnit.proto

ParameterSetInstance: PTUParameter

Parameter Instance: ACCELERATION_PAN

Documentation:

Table: Parameter-Instance ACCELERATION_PAN
Attribute Name Attribute Type Attribute Value Attribute Description
acc Double 1.795

Parameter Instance: ACCELERATION_TILT

Documentation:

Table: Parameter-Instance ACCELERATION_TILT
Attribute Name Attribute Type Attribute Value Attribute Description
acc Double 1.795

Parameter Instance: RESET

Documentation:

Table: Parameter-Instance RESET
Attribute Name Attribute Type Attribute Value Attribute Description
reset Boolean false

Parameter Instance: SENSOR_OFFSET

Documentation:

Table: Parameter-Instance SENSOR_OFFSET
Attribute Name Attribute Type Attribute Value Attribute Description
x Double -140
y Double -13
z Double 1097
azimuth Double 0.0
elevation Double 0.0
roll Double 0.0

Parameter Instance: SPEED_LIMIT_PAN

Documentation:

Table: Parameter-Instance SPEED_LIMIT_PAN
Attribute Name Attribute Type Attribute Value Attribute Description
min Double 0.028
max Double 2.604

Parameter Instance: SPEED_LIMIT_TILT

Documentation:

Table: Parameter-Instance SPEED_LIMIT_TILT
Attribute Name Attribute Type Attribute Value Attribute Description
min Double 0.028
max Double 2.604

Parameter Instance: SPEED_PAN

Documentation:

Table: Parameter-Instance SPEED_PAN
Attribute Name Attribute Type Attribute Value Attribute Description
speed Double 1.0

Parameter Instance: SPEED_TILT

Documentation:

Table: Parameter-Instance SPEED_TILT
Attribute Name Attribute Type Attribute Value Attribute Description
speed Double 1.0

Parameter Instance: START_UP_SPEED_PAN

Documentation:

Table: Parameter-Instance START_UP_SPEED_PAN
Attribute Name Attribute Type Attribute Value Attribute Description
speed Double 0.2

Parameter Instance: START_UP_SPEED_TILT

Documentation:

Table: Parameter-Instance START_UP_SPEED_TILT
Attribute Name Attribute Type Attribute Value Attribute Description
speed Double 0.2

Internal Parameter: PTU

Documentation:

Table: Internal Parameter PTU
Attribute Name Attribute Type Attribute Value Attribute Description
device String "/dev/ptu"
verbose Boolean false
x Int32 0

position relative to mobile robot [mm]

y Int32 0

position relative to mobile robot [mm]

z Int32 0

position relative to mobile robot [mm]

azimuth Double 0

counterclockwise horizontal rotation relative to mobile robot [radians]

elevation Double 0

rotation down/up relative to mobile robot [radians]

roll Double 0

rotation around front direction relative to mobile robot [radians]

Internal Parameter: Base

Documentation:

Table: Internal Parameter Base
Attribute Name Attribute Type Attribute Value Attribute Description
on_base Boolean true
x Int32 0
y Int32 0
z Int32 0
base_a Double 0
steer_a Double 0
turret_a Double 0
Morty Proxy This is a proxified and sanitized view of the page, visit original site.