dynobstacle
DynBaseObstacleEntity
#
Bases: QEntity
A dynamic obstacle detected by the robot.
Base class for rectangle and circle obstacles.
Source code in cogip/entities/dynobstacle.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|
__init__(parent)
#
Class constructor.
Source code in cogip/entities/dynobstacle.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
DynCircleObstacleEntity
#
Bases: DynBaseObstacleEntity
A dynamic circle obstacle detected by the robot.
Represented as a transparent red cylinder.
Source code in cogip/entities/dynobstacle.py
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
|
__init__(parent)
#
Class constructor.
Source code in cogip/entities/dynobstacle.py
114 115 116 117 118 119 120 121 122 123 124 125 126 |
|
set_position(x, y, radius)
#
Set the position and size of the dynamic obstacle.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x |
int
|
Center X position |
required |
y |
int
|
Center Y position |
required |
radius |
int
|
Obstacle radius |
required |
Source code in cogip/entities/dynobstacle.py
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
|
DynRectObstacleEntity
#
Bases: DynBaseObstacleEntity
A dynamic rectangle obstacle detected by the robot.
Represented as a transparent red cube.
Source code in cogip/entities/dynobstacle.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
|
__init__(parent)
#
Class constructor.
Source code in cogip/entities/dynobstacle.py
61 62 63 64 65 66 67 68 69 70 71 |
|
set_position(x, y, rotation)
#
Set the position and orientation of the dynamic obstacle.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x |
int
|
X position |
required |
y |
int
|
Y position |
required |
rotation |
int
|
Rotation |
required |
Source code in cogip/entities/dynobstacle.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
|
set_size(length, width)
#
Set the size of the dynamic obstacle.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
length |
int
|
Length |
required |
width |
int
|
Width |
required |
Source code in cogip/entities/dynobstacle.py
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|