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
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);
| 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. |
Documentation:
Reads on request the position etc. of the mobile robot: CommBasicObjects.CommBaseState
Documentation:
Reads periodically the position etc. of the mobile robot: CommBasicObjects.CommBaseState
Documentation:
Writes periodically the position and orientation of the PTU: CommBasicObjects.CommDevicePoseState
Documentation:
Sends an event: DomainPTU.PTUMoveStatus
Documentation:
Reads periodically movement commands: DomainPTU.CommPTUMoveRequest
Documentation:
request: DomainPTU.CommPTUMoveRequest
answer: DomainPTU.CommPTUMoveResponse
Documentation:
Writes on request: DomainPTU.CommMobilePTUState
Documentation:
| Attribute Name | Attribute Type | Attribute Value | Attribute Description |
|---|---|---|---|
| robotName | String | "PanTiltUnit" | the controller name of PanTiltUnit.proto |
Documentation:
| Attribute Name | Attribute Type | Attribute Value | Attribute Description |
|---|---|---|---|
| acc | Double | 1.795 |
Documentation:
| Attribute Name | Attribute Type | Attribute Value | Attribute Description |
|---|---|---|---|
| acc | Double | 1.795 |
Documentation:
| Attribute Name | Attribute Type | Attribute Value | Attribute Description |
|---|---|---|---|
| reset | Boolean | false |
Documentation:
| 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 |
Documentation:
| Attribute Name | Attribute Type | Attribute Value | Attribute Description |
|---|---|---|---|
| min | Double | 0.028 | |
| max | Double | 2.604 |
Documentation:
| Attribute Name | Attribute Type | Attribute Value | Attribute Description |
|---|---|---|---|
| min | Double | 0.028 | |
| max | Double | 2.604 |
Documentation:
| Attribute Name | Attribute Type | Attribute Value | Attribute Description |
|---|---|---|---|
| speed | Double | 1.0 |
Documentation:
| Attribute Name | Attribute Type | Attribute Value | Attribute Description |
|---|---|---|---|
| speed | Double | 1.0 |
Documentation:
| Attribute Name | Attribute Type | Attribute Value | Attribute Description |
|---|---|---|---|
| speed | Double | 0.2 |
Documentation:
| Attribute Name | Attribute Type | Attribute Value | Attribute Description |
|---|---|---|---|
| speed | Double | 0.2 |
Documentation:
| 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] |
Documentation:
| 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 |
