LaneInvasionSensor类是一个检测车辆压线的传感器,继承自ClientSideSensor。 更多...
#include <LaneInvasionSensor.h>
类 carla::client::LaneInvasionSensor 继承关系图:
carla::client::LaneInvasionSensor 的协作图:Public 成员函数 | |
| bool | IsListening () const override |
| 返回此传感器实例当前是否正在监听模拟器中的相关传感器。 更多... | |
| void | Listen (CallbackFunctionType callback) override |
| 注册一个回调,每次收到新的车辆压线测量值时执行。 更多... | |
| void | Stop () override |
| 停止监听新的车辆压线测量结果。 更多... | |
| ~LaneInvasionSensor () | |
| 析构函数,用于清理LaneInvasionSensor对象。 更多... | |
Public 成员函数 继承自 carla::client::Sensor | |
| Actor (ActorInitializer init) | |
| 使用Actor的构造函数初始化Sensor对象。 更多... | |
| virtual bool | IsListening () const =0 |
| 返回此传感器实例当前是否正在监听新数据。 更多... | |
| virtual void | Listen (CallbackFunctionType callback)=0 |
| 注册一个回调,以便在每次收到新的测量值时执行。 更多... | |
| virtual void | Stop ()=0 |
| 停止监听新的测量结果。 更多... | |
Public 成员函数 继承自 carla::client::Actor | |
| Actor (ActorInitializer init) | |
| void | AddAngularImpulse (const geom::Vector3D &vector) |
| 对行为体施加角冲量。 更多... | |
| void | AddForce (const geom::Vector3D &force) |
| 在行为体的质心施加力。 更多... | |
| void | AddForce (const geom::Vector3D &force, const geom::Vector3D &location) |
| 在某个位置对行为体施加力。 更多... | |
| void | AddImpulse (const geom::Vector3D &impulse, const geom::Vector3D &location) |
| 在某个位置对行为体施加冲量。 更多... | |
| void | AddImpulse (const geom::Vector3D &vector) |
| 在行为体的质心施加冲量。 更多... | |
| void | AddTorque (const geom::Vector3D &vector) |
| 对行为体施加扭矩。 更多... | |
| virtual bool | Destroy () |
| 告诉模拟器销毁该行为体,并返回行为体是否成功被销毁的结果。 更多... | |
| void | DisableConstantVelocity () |
| 禁用恒定速度模式。 更多... | |
| void | EnableConstantVelocity (const geom::Vector3D &vector) |
| 启用恒定速度模式。 更多... | |
| geom::Vector3D | GetAcceleration () const |
| 返回行为体的当前3D加速度。 更多... | |
| rpc::ActorState | GetActorState () const |
| geom::Vector3D | GetAngularVelocity () const |
| 返回行为体的当前3D角速度。 更多... | |
| std::vector< std::string > | GetBoneNames () const |
| std::vector< geom::Transform > | GetBoneRelativeTransforms () const |
| std::vector< geom::Transform > | GetBoneWorldTransforms () const |
| std::vector< std::string > | GetComponentNames () const |
| geom::Transform | GetComponentRelativeTransform (const std::string componentName) const |
| 获取指定组件相对于Actor的相对坐标变换。 这个函数返回一个包含位置、旋转和平移信息的Transform对象, 表示指定组件相对于Actor原点的位置和方向。 更多... | |
| geom::Transform | GetComponentWorldTransform (const std::string componentName) const |
| 获取指定组件的世界坐标变换。 这个函数返回一个包含位置、旋转和平移信息的Transform对象, 表示指定组件在世界坐标系中的位置和方向。 更多... | |
| geom::Location | GetLocation () const |
| 返回行为体的当前位置。 更多... | |
| std::vector< std::string > | GetSocketNames () const |
| std::vector< geom::Transform > | GetSocketRelativeTransforms () const |
| std::vector< geom::Transform > | GetSocketWorldTransforms () const |
| geom::Transform | GetTransform () const |
| 返回行为体的当前变换(位置和方向)。 更多... | |
| geom::Vector3D | GetVelocity () const |
| 返回行为体的当前3D速度。 更多... | |
| bool | IsActive () const |
| bool | IsAlive () const |
| bool | IsDormant () const |
| const auto & | Serialize () const |
| void | SetActorDead () |
| 将行为体标记为已死亡并开始其生命周期。 更多... | |
| void | SetCollisions (bool enabled=true) |
| 启用或禁用该行为体的碰撞。 更多... | |
| void | SetEnableGravity (bool enabled=true) |
| 启用或禁用该行为体的重力。 更多... | |
| void | SetLocation (const geom::Location &location) |
| 将行为体传送到 location。 更多... | |
| void | SetSimulatePhysics (bool enabled=true) |
| 启用或禁用该行为体的物理模拟。 更多... | |
| void | SetTargetAngularVelocity (const geom::Vector3D &vector) |
| 在应用物理之前设置行为体的角速度。 更多... | |
| void | SetTargetVelocity (const geom::Vector3D &vector) |
| 在应用物理之前设置行为体的速度。 更多... | |
| void | SetTransform (const geom::Transform &transform) |
| 将行为体传送并旋转到 transform。 更多... | |
| virtual | ~Actor ()=default |
Public 成员函数 继承自 carla::client::detail::ActorState | |
| const std::vector< ActorAttributeValue > & | GetAttributes () const |
| const std::string & | GetDisplayId () const |
| ActorId | GetId () const |
| SharedPtr< Actor > | GetParent () const |
| ActorId | GetParentId () const |
| const std::vector< uint8_t > & | GetSemanticTags () const |
| const std::string & | GetTypeId () const |
| World | GetWorld () const |
Private 属性 | |
| std::atomic_size_t | _callback_id {0u} |
| 原子性的回调ID,用于标识当前设置的回调。 当_callback_id不为0时,表示正在监听。 更多... | |
额外继承的成员函数 | |
Public 类型 继承自 carla::client::Sensor | |
| using | CallbackFunctionType = std::function< void(SharedPtr< sensor::SensorData >)> |
| 回调函数的类型别名,用于接收传感器数据。 更多... | |
Protected 成员函数 继承自 carla::client::detail::ActorState | |
| ActorState (rpc::Actor description, EpisodeProxy episode) | |
| const rpc::Actor & | GetActorDescription () const |
| const geom::BoundingBox & | GetBoundingBox () const |
| EpisodeProxy & | GetEpisode () |
| const EpisodeProxy & | GetEpisode () const |
LaneInvasionSensor类是一个检测车辆压线的传感器,继承自ClientSideSensor。
在文件 LibCarla/source/carla/client/LaneInvasionSensor.h 第 39 行定义.
| carla::client::LaneInvasionSensor::~LaneInvasionSensor | ( | ) |
析构函数,用于清理LaneInvasionSensor对象。
|
inlineoverridevirtual |
返回此传感器实例当前是否正在监听模拟器中的相关传感器。
在文件 LibCarla/source/carla/client/LaneInvasionSensor.h 第 69 行定义.
引用了 _callback_id.
|
overridevirtual |
注册一个回调,每次收到新的车辆压线测量值时执行。
| callback | 回调函数,当接收到新的测量值时会被调用。 |
|
overridevirtual |
停止监听新的车辆压线测量结果。
|
private |
原子性的回调ID,用于标识当前设置的回调。 当_callback_id不为0时,表示正在监听。
在文件 LibCarla/source/carla/client/LaneInvasionSensor.h 第 78 行定义.
被这些函数引用 IsListening().