|
186 | 186 | An attachment that expands or retracts the position of the actor, depending on its parent. This attachment is only recommended to record videos from the simulation where a smooth movement is needed. SpringArms are an Unreal Engine component so [check the UE docs](https://docs.unrealengine.com/en-US/Gameplay/HowTo/UsingCameras/SpringArmComponents/index.html) to learn more about them. <br><b style="color:red;">Warning:</b> The <b>SpringArm</b> attachment presents weird behaviors when an actor is spawned with a relative translation in the Z-axis (e.g. <code>child_location = Location(0,0,2)</code>).
|
187 | 187 | # --------------------------------------
|
188 | 188 |
|
| 189 | + - class_name: LabelledPoint |
| 190 | + # - DESCRIPTION ------------------------ |
| 191 | + doc: > |
| 192 | + Class that represent a position in space with a semantic label. |
| 193 | + # - PROPERTIES ------------------------- |
| 194 | + instance_variables: |
| 195 | + - var_name: location |
| 196 | + doc: > |
| 197 | + Position in 3D space. |
| 198 | + - var_name: label |
| 199 | + doc: > |
| 200 | + Semantic tag of the point. |
| 201 | + # -------------------------------------- |
| 202 | + |
189 | 203 | - class_name: World
|
190 | 204 | # - DESCRIPTION ------------------------
|
191 | 205 | doc: >
|
|
421 | 435 | New conditions to be applied.
|
422 | 436 | doc: >
|
423 | 437 | Changes the weather parameteres ruling the simulation to another ones defined in an object.
|
424 |
| - # -------------------------------------- |
| 438 | + # -------------------------------------- |
| 439 | + - def_name: cast_ray |
| 440 | + return: list(carla.LabelledPoint) |
| 441 | + params: |
| 442 | + - param_name: initial_location |
| 443 | + type: carla.Location |
| 444 | + doc: > |
| 445 | + The initial position of the ray. |
| 446 | + - param_name: final_location |
| 447 | + type: carla.Location |
| 448 | + doc: > |
| 449 | + The final position of the ray. |
| 450 | + doc: > |
| 451 | + Casts a ray from the specified initial_location to final_location. The function then detects all geometries intersecting the ray and returns a list of carla.LabelledPoint in order. |
| 452 | + # -------------------------------------- |
| 453 | + - def_name: project_point |
| 454 | + return: carla.LabelledPoint |
| 455 | + params: |
| 456 | + - param_name: location |
| 457 | + type: carla.Location |
| 458 | + doc: > |
| 459 | + The point to be projected. |
| 460 | + - param_name: direction |
| 461 | + type: carla.Vector3D |
| 462 | + doc: > |
| 463 | + The direction of projection. |
| 464 | + - param_name: search_distance |
| 465 | + type: float |
| 466 | + doc: > |
| 467 | + The maximum distance to perform the projection |
| 468 | + doc: > |
| 469 | + Projects the specified point to the desired direction in the scene. The functions casts a ray from location in a direction and returns a carla.Labelled object with the first geometry this ray intersects. If no geometry is found in the search_distance range the function returns `None`. |
| 470 | + # -------------------------------------- |
| 471 | + - def_name: ground_projection |
| 472 | + return: carla.LabelledPoint |
| 473 | + params: |
| 474 | + - param_name: location |
| 475 | + type: carla.Location |
| 476 | + doc: > |
| 477 | + The point to be projected. |
| 478 | + - param_name: search_distance |
| 479 | + type: float |
| 480 | + doc: > |
| 481 | + The maximum distance to perform the projection |
| 482 | + doc: > |
| 483 | + Projects the specified point downwards in the scene. The functions casts a ray from location in the direction (0,0,-1) (downwards) and returns a carla.Labelled object with the first geometry this ray intersects (usually the ground). If no geometry is found in the search_distance range the function returns `None`. |
| 484 | + # -------------------------------------- |
425 | 485 | - def_name: __str__
|
426 | 486 | return:
|
427 | 487 | string
|
428 | 488 | doc: >
|
429 | 489 | The content of the world is parsed and printed as a brief report of its current state.
|
430 |
| - # -------------------------------------- |
| 490 | + # -------------------------------------- |
431 | 491 |
|
432 | 492 | - class_name: DebugHelper
|
433 | 493 | # - DESCRIPTION ------------------------
|
|
0 commit comments