|
CARLA
|
#include <ROS2.h>
Classes | |
| struct | ActorRegistration |
| struct | Stamp |
Public Member Functions | |
| void | AddActorParentRosName (void *actor, void *parent) |
| void | AddActorRosTopicName (void *actor, std::string ros_topic_name) |
| void | AddBasicSubscriberCallback (void *actor, std::string ros_name, ActorMessageCallback callback) |
| bool | Enable (bool enable, Middleware middleware=Middleware::FastDDS, int domain_id=kUnsetDomainId) |
| Enable or disable ROS 2 publishing. | |
| void | EnableStream (carla::streaming::detail::stream_id_type id) |
| std::string | GetActorRosTopicName (void *actor) const |
| bool | GetPublishTF () const |
| bool | IsEnabled () |
| bool | IsStreamEnabled (carla::streaming::detail::stream_id_type id) |
| void | ProcessDataFromAutowareGNSS (uint64_t sensor_type, carla::streaming::detail::stream_id_type stream_id, const carla::geom::Transform sensor_transform, const carla::geom::GeoLocation &data, const carla::geom::Transform &sensor_world_transform, const double mgrs_offset_position[3], void *actor=nullptr) |
| void | ProcessDataFromCamera (uint64_t sensor_type, carla::streaming::detail::stream_id_type stream_id, const carla::geom::Transform sensor_transform, int W, int H, float Fov, const carla::SharedBufferView buffer, void *actor=nullptr) |
| void | ProcessDataFromCollisionSensor (uint64_t sensor_type, carla::streaming::detail::stream_id_type stream_id, const carla::geom::Transform sensor_transform, uint32_t other_actor, carla::geom::Vector3D impulse, void *actor) |
| void | ProcessDataFromDVS (uint64_t sensor_type, carla::streaming::detail::stream_id_type stream_id, const carla::geom::Transform sensor_transform, const carla::SharedBufferView buffer, int W, int H, float Fov, void *actor=nullptr) |
| void | ProcessDataFromGNSS (uint64_t sensor_type, carla::streaming::detail::stream_id_type stream_id, const carla::geom::Transform sensor_transform, const carla::geom::GeoLocation &data, void *actor=nullptr) |
| void | ProcessDataFromIMU (uint64_t sensor_type, carla::streaming::detail::stream_id_type stream_id, const carla::geom::Transform sensor_transform, carla::geom::Vector3D accelerometer, carla::geom::Vector3D gyroscope, float compass, void *actor=nullptr) |
| void | ProcessDataFromLidar (uint64_t sensor_type, carla::streaming::detail::stream_id_type stream_id, const carla::geom::Transform sensor_transform, carla::sensor::data::LidarData &data, void *actor=nullptr) |
| void | ProcessDataFromLidar (uint64_t sensor_type, carla::streaming::detail::stream_id_type stream_id, const carla::geom::Transform sensor_transform, uint32_t channel_count, float upper_fov_limit, float lower_fov_limit, carla::sensor::data::LidarData &data, void *actor=nullptr) |
| void | ProcessDataFromObstacleDetection (uint64_t sensor_type, carla::streaming::detail::stream_id_type stream_id, const carla::geom::Transform sensor_transform, AActor *first_actor, AActor *second_actor, float distance, void *actor=nullptr) |
| void | ProcessDataFromRadar (uint64_t sensor_type, carla::streaming::detail::stream_id_type stream_id, const carla::geom::Transform sensor_transform, const carla::sensor::data::RadarData &data, void *actor=nullptr) |
| void | ProcessDataFromSemanticLidar (uint64_t sensor_type, carla::streaming::detail::stream_id_type stream_id, const carla::geom::Transform sensor_transform, carla::sensor::data::SemanticLidarData &data, void *actor=nullptr) |
| void | ProcessDataFromStatusSensor (uint64_t sensor_type, carla::streaming::detail::stream_id_type stream_id, const carla::geom::Transform sensor_transform, const carla::sensor::s11n::VehicleStatusData &data, void *vehicle_actor, void *actor) |
| void | RegisterSensor (void *actor, std::string ros_name, std::string frame_id, bool publish_tf) |
| void | RegisterVehicle (void *actor, std::string ros_name, std::string frame_id, ActorCallback callback, bool enable_ackermann_control=false, bool enable_autoware_control=false) |
| void | RemoveActorRosTopicName (void *actor) |
| void | RemoveBasicSubscriberCallback (void *actor) |
| void | ResetStreams () |
| ROS2 (const ROS2 &obj)=delete | |
| void | SetFrame (uint64_t frame) |
| void | SetPublishTF (bool publish_tf) |
| void | SetTimestamp (double timestamp) |
| void | Shutdown () |
| void | UnregisterSensor (void *actor) |
| void | UnregisterVehicle (void *actor) |
Static Public Member Functions | |
| static std::shared_ptr< ROS2 > | GetInstance () |
Private Member Functions | |
| std::string | BuildBaseTopicName (void *actor) const |
| std::string | BuildParentChain (void *actor) const |
| void | DropPublishersLocked (void *actor) |
| template<typename CameraT> | |
| std::shared_ptr< CarlaCameraPublisher > | GetOrCreateCameraSensor (carla::streaming::detail::stream_id_type id, void *actor, const std::string &default_prefix) |
| std::shared_ptr< BasePublisher > | GetOrCreateSensor (int type, carla::streaming::detail::stream_id_type id, void *actor) |
| std::shared_ptr< CarlaTransformPublisher > | GetOrCreateTransformPublisherLocked (void *actor) |
| Stamp | GetStamp () const |
| bool | HasTopicOverride (void *actor) const |
| bool | IsKnownActorLocked (void *actor) const |
| std::string | LookupFrameId (void *actor) const |
| std::string | LookupRosName (void *actor) const |
| void | PublishTransform (void *actor, const Stamp &stamp, const carla::geom::Transform &sensor_transform) |
| void | ResolveAutoStreamSuffix (void *actor, const std::string &prefix, carla::streaming::detail::stream_id_type id) |
| ROS2 ()=default | |
| void | UnregisterSensorLocked (void *actor) |
Private Attributes | |
| std::unordered_map< void *, ActorCallback > | _actor_callbacks |
| std::unordered_map< void *, std::vector< void * > > | _actor_parents |
| std::unordered_map< void *, std::string > | _actor_ros_topic_names |
| std::unordered_map< void *, std::shared_ptr< AutowareVehicleStatusPublisher > > | _autoware_status_publishers |
| std::unordered_set< void * > | _autoware_vehicles |
| std::unordered_map< void *, std::shared_ptr< CarlaCameraPublisher > > | _camera_publishers |
| std::shared_ptr< CarlaClockPublisher > | _clock_publisher |
| std::atomic< bool > | _enabled {false} |
| std::atomic< uint64_t > | _frame {0} |
| std::mutex | _mutex |
| std::unordered_set< carla::streaming::detail::stream_id_type > | _publish_stream |
| std::atomic< bool > | _publish_tf {true} |
| std::unordered_map< void *, std::shared_ptr< BasePublisher > > | _publishers |
| std::unordered_map< void *, ActorRegistration > | _registrations |
| Stamp | _stamp |
| std::unordered_multimap< void *, std::shared_ptr< BaseSubscriber > > | _subscribers |
| std::unordered_map< void *, std::shared_ptr< CarlaTransformPublisher > > | _transforms |
Static Private Attributes | |
| static std::shared_ptr< ROS2 > | _instance |
|
delete |
References ROS2().
Referenced by GetInstance(), and ROS2().
|
privatedefault |
| void carla::ros2::ROS2::AddActorParentRosName | ( | void * | actor, |
| void * | parent ) |
Definition at line 289 of file ROS2.cpp.
References _actor_parents, and _mutex.
| void carla::ros2::ROS2::AddActorRosTopicName | ( | void * | actor, |
| std::string | ros_topic_name ) |
Definition at line 264 of file ROS2.cpp.
References _actor_ros_topic_names, _mutex, and DropPublishersLocked().
| void carla::ros2::ROS2::AddBasicSubscriberCallback | ( | void * | actor, |
| std::string | ros_name, | ||
| ActorMessageCallback | callback ) |
|
private |
Definition at line 348 of file ROS2.cpp.
References _actor_ros_topic_names, BuildParentChain(), and LookupRosName().
Referenced by GetOrCreateCameraSensor(), GetOrCreateSensor(), and RegisterVehicle().
|
private |
Definition at line 328 of file ROS2.cpp.
References _actor_parents, and LookupRosName().
Referenced by BuildBaseTopicName(), and PublishTransform().
|
private |
Definition at line 184 of file ROS2.cpp.
References _camera_publishers, _publishers, and _transforms.
Referenced by AddActorRosTopicName(), RegisterSensor(), RegisterVehicle(), RemoveActorRosTopicName(), and UnregisterSensorLocked().
| bool carla::ros2::ROS2::Enable | ( | bool | enable, |
| Middleware | middleware = Middleware::FastDDS, | ||
| int | domain_id = kUnsetDomainId ) |
Enable or disable ROS 2 publishing.
When enabling, middleware selects the DDS middleware; it must have been compiled into the shared library. domain_id selects the ROS 2 domain id for the chosen middleware; kUnsetDomainId (the default) keeps each middleware's native default.
Definition at line 65 of file ROS2.cpp.
References _clock_publisher, _enabled, _mutex, carla::ros2::CommandLine, carla::ros2::CycloneDDS, carla::ros2::Environment, carla::ros2::FastDDS, carla::ros2::GetAvailableMiddleware(), carla::ros2::ResolvedDomainId::id, carla::ros2::MiddlewareToString(), carla::ros2::SetActiveDomainId(), carla::ros2::SetActiveMiddleware(), and carla::ros2::ResolvedDomainId::source.
|
inline |
Definition at line 134 of file ROS2.h.
References _mutex, and _publish_stream.
| std::string carla::ros2::ROS2::GetActorRosTopicName | ( | void * | actor | ) | const |
Definition at line 278 of file ROS2.cpp.
References _actor_ros_topic_names, and _mutex.
|
inlinestatic |
Definition at line 61 of file ROS2.h.
References _instance, and ROS2().
Referenced by UCarlaEpisode::AddRosParentNames(), FFrameData::AddWorldState(), FCarlaServer::FPimpl::BindActions(), AVehicleStatusSensor::CollectAndStream(), FCarlaEngine::NotifyInitGame(), UActorDispatcher::OnActorDestroyed(), ACollisionSensor::OnCollisionEvent(), AObstacleDetectionSensor::OnObstacleDetectionEvent(), FFrameData::PlayWorldState(), AAutowareGnssSensor::PostPhysTick(), ADVSCamera::PostPhysTick(), AGnssSensor::PostPhysTick(), AInertialMeasurementUnit::PostPhysTick(), ARadar::PostPhysTick(), UActorDispatcher::RegisterActor(), FCarlaEngine::ResetFrameCounter(), AHSSLidar::SendData(), ARayCastLidar::SendData(), ARayCastSemanticLidar::SendData(), ASensor::SendDataToClient(), FPixelReader::SendPixelsInRenderThread(), UCarlaEpisode::SetTimers(), UCarlaEpisode::TickTimers(), FCarlaEngine::UpdateFrameCounter(), and FCarlaEngine::~FCarlaEngine().
|
private |
Definition at line 396 of file ROS2.cpp.
References _camera_publishers, _mutex, BuildBaseTopicName(), IsKnownActorLocked(), LookupFrameId(), and ResolveAutoStreamSuffix().
Referenced by ProcessDataFromCamera().
|
private |
Definition at line 432 of file ROS2.cpp.
References _mutex, _publishers, carla::ros2::AutowareGnssSensor, BuildBaseTopicName(), carla::ros2::CameraGBufferFloat, carla::ros2::CameraGBufferUint8, carla::ros2::CollisionSensor, carla::ros2::DVSCamera, carla::ros2::GnssSensor, HasTopicOverride(), carla::ros2::InertialMeasurementUnit, IsKnownActorLocked(), carla::ros2::LaneInvasionSensor, LookupFrameId(), carla::ros2::ObstacleDetectionSensor, carla::ros2::Radar, carla::ros2::RayCastLidar, carla::ros2::RayCastSemanticLidar, ResolveAutoStreamSuffix(), carla::ros2::RssSensor, and carla::ros2::WorldObserver.
Referenced by ProcessDataFromAutowareGNSS(), ProcessDataFromCollisionSensor(), ProcessDataFromDVS(), ProcessDataFromGNSS(), ProcessDataFromIMU(), ProcessDataFromLidar(), ProcessDataFromRadar(), and ProcessDataFromSemanticLidar().
|
private |
Definition at line 526 of file ROS2.cpp.
References _publish_tf, _registrations, and _transforms.
Referenced by PublishTransform().
|
inline |
Definition at line 86 of file ROS2.h.
References _publish_tf.
|
private |
Definition at line 179 of file ROS2.cpp.
References _mutex, and _stamp.
Referenced by ProcessDataFromAutowareGNSS(), ProcessDataFromCamera(), ProcessDataFromCollisionSensor(), ProcessDataFromDVS(), ProcessDataFromGNSS(), ProcessDataFromIMU(), ProcessDataFromLidar(), ProcessDataFromRadar(), ProcessDataFromSemanticLidar(), and ProcessDataFromStatusSensor().
|
private |
Definition at line 284 of file ROS2.cpp.
References _actor_ros_topic_names.
Referenced by GetOrCreateSensor(), and IsKnownActorLocked().
|
inline |
|
private |
Definition at line 190 of file ROS2.cpp.
References _registrations, and HasTopicOverride().
Referenced by GetOrCreateCameraSensor(), and GetOrCreateSensor().
|
inline |
Definition at line 138 of file ROS2.h.
References _mutex, and _publish_stream.
|
private |
Definition at line 323 of file ROS2.cpp.
References _registrations.
Referenced by GetOrCreateCameraSensor(), GetOrCreateSensor(), and PublishTransform().
|
private |
Definition at line 318 of file ROS2.cpp.
References _registrations.
Referenced by BuildBaseTopicName(), and BuildParentChain().
| void carla::ros2::ROS2::ProcessDataFromAutowareGNSS | ( | uint64_t | sensor_type, |
| carla::streaming::detail::stream_id_type | stream_id, | ||
| const carla::geom::Transform | sensor_transform, | ||
| const carla::geom::GeoLocation & | data, | ||
| const carla::geom::Transform & | sensor_world_transform, | ||
| const double | mgrs_offset_position[3], | ||
| void * | actor = nullptr ) |
Definition at line 953 of file ROS2.cpp.
References carla::ros2::AutowareGnssSensor, GetOrCreateSensor(), GetStamp(), carla::geom::Transform::location, carla::ros2::ROS2::Stamp::nanoseconds, carla::geom::Rotation::pitch, PublishTransform(), carla::geom::Rotation::roll, carla::geom::Transform::rotation, carla::ros2::ROS2::Stamp::seconds, carla::geom::Vector3D::x, carla::geom::Vector3D::y, carla::geom::Rotation::yaw, and carla::geom::Vector3D::z.
| void carla::ros2::ROS2::ProcessDataFromCamera | ( | uint64_t | sensor_type, |
| carla::streaming::detail::stream_id_type | stream_id, | ||
| const carla::geom::Transform | sensor_transform, | ||
| int | W, | ||
| int | H, | ||
| float | Fov, | ||
| const carla::SharedBufferView | buffer, | ||
| void * | actor = nullptr ) |
Definition at line 576 of file ROS2.cpp.
References _frame, carla::ros2::CameraGBufferFloat, carla::ros2::CameraGBufferUint8, carla::ros2::CollisionSensor, carla::ros2::DepthCamera, GetOrCreateCameraSensor(), GetStamp(), carla::sensor::s11n::ImageSerializer::header_offset, carla::sensor::s11n::OpticalFlowImageSerializer::header_offset, carla::ros2::InstanceSegmentationCamera, carla::ros2::ROS2::Stamp::nanoseconds, carla::ros2::NormalsCamera, carla::ros2::OpticalFlowCamera, PublishTransform(), carla::ros2::RssSensor, carla::ros2::SceneCaptureCamera, carla::ros2::ROS2::Stamp::seconds, carla::ros2::SemanticSegmentationCamera, and carla::ros2::WorldObserver.
| void carla::ros2::ROS2::ProcessDataFromCollisionSensor | ( | uint64_t | sensor_type, |
| carla::streaming::detail::stream_id_type | stream_id, | ||
| const carla::geom::Transform | sensor_transform, | ||
| uint32_t | other_actor, | ||
| carla::geom::Vector3D | impulse, | ||
| void * | actor ) |
Definition at line 830 of file ROS2.cpp.
References carla::ros2::CollisionSensor, GetOrCreateSensor(), GetStamp(), carla::ros2::ROS2::Stamp::nanoseconds, PublishTransform(), carla::ros2::ROS2::Stamp::seconds, carla::geom::Vector3D::x, carla::geom::Vector3D::y, and carla::geom::Vector3D::z.
| void carla::ros2::ROS2::ProcessDataFromDVS | ( | uint64_t | sensor_type, |
| carla::streaming::detail::stream_id_type | stream_id, | ||
| const carla::geom::Transform | sensor_transform, | ||
| const carla::SharedBufferView | buffer, | ||
| int | W, | ||
| int | H, | ||
| float | Fov, | ||
| void * | actor = nullptr ) |
Definition at line 689 of file ROS2.cpp.
References carla::ros2::DVSCamera, GetOrCreateSensor(), GetStamp(), carla::sensor::s11n::ImageSerializer::header_offset, carla::ros2::ROS2::Stamp::nanoseconds, PublishTransform(), and carla::ros2::ROS2::Stamp::seconds.
| void carla::ros2::ROS2::ProcessDataFromGNSS | ( | uint64_t | sensor_type, |
| carla::streaming::detail::stream_id_type | stream_id, | ||
| const carla::geom::Transform | sensor_transform, | ||
| const carla::geom::GeoLocation & | data, | ||
| void * | actor = nullptr ) |
Definition at line 653 of file ROS2.cpp.
References carla::geom::GeoLocation::altitude, GetOrCreateSensor(), GetStamp(), carla::ros2::GnssSensor, carla::geom::GeoLocation::latitude, carla::geom::GeoLocation::longitude, carla::ros2::ROS2::Stamp::nanoseconds, PublishTransform(), and carla::ros2::ROS2::Stamp::seconds.
| void carla::ros2::ROS2::ProcessDataFromIMU | ( | uint64_t | sensor_type, |
| carla::streaming::detail::stream_id_type | stream_id, | ||
| const carla::geom::Transform | sensor_transform, | ||
| carla::geom::Vector3D | accelerometer, | ||
| carla::geom::Vector3D | gyroscope, | ||
| float | compass, | ||
| void * | actor = nullptr ) |
Definition at line 668 of file ROS2.cpp.
References GetOrCreateSensor(), GetStamp(), carla::ros2::InertialMeasurementUnit, carla::ros2::ROS2::Stamp::nanoseconds, PublishTransform(), carla::ros2::ROS2::Stamp::seconds, carla::geom::Vector3D::x, carla::geom::Vector3D::y, and carla::geom::Vector3D::z.
| void carla::ros2::ROS2::ProcessDataFromLidar | ( | uint64_t | sensor_type, |
| carla::streaming::detail::stream_id_type | stream_id, | ||
| const carla::geom::Transform | sensor_transform, | ||
| carla::sensor::data::LidarData & | data, | ||
| void * | actor = nullptr ) |
Definition at line 722 of file ROS2.cpp.
References ProcessDataFromLidar().
Referenced by ProcessDataFromLidar().
| void carla::ros2::ROS2::ProcessDataFromLidar | ( | uint64_t | sensor_type, |
| carla::streaming::detail::stream_id_type | stream_id, | ||
| const carla::geom::Transform | sensor_transform, | ||
| uint32_t | channel_count, | ||
| float | upper_fov_limit, | ||
| float | lower_fov_limit, | ||
| carla::sensor::data::LidarData & | data, | ||
| void * | actor = nullptr ) |
Definition at line 735 of file ROS2.cpp.
References carla::sensor::data::SemanticLidarData::_header, carla::sensor::data::LidarData::_points, GetOrCreateSensor(), GetStamp(), carla::ros2::ROS2::Stamp::nanoseconds, PublishTransform(), carla::ros2::RayCastLidar, carla::ros2::ROS2::Stamp::seconds, and carla::sensor::data::SemanticLidarData::SIZE.
| void carla::ros2::ROS2::ProcessDataFromObstacleDetection | ( | uint64_t | sensor_type, |
| carla::streaming::detail::stream_id_type | stream_id, | ||
| const carla::geom::Transform | sensor_transform, | ||
| AActor * | first_actor, | ||
| AActor * | second_actor, | ||
| float | distance, | ||
| void * | actor = nullptr ) |
| void carla::ros2::ROS2::ProcessDataFromRadar | ( | uint64_t | sensor_type, |
| carla::streaming::detail::stream_id_type | stream_id, | ||
| const carla::geom::Transform | sensor_transform, | ||
| const carla::sensor::data::RadarData & | data, | ||
| void * | actor = nullptr ) |
Definition at line 799 of file ROS2.cpp.
References carla::sensor::data::RadarData::_detections, carla::sensor::data::RadarData::GetDetectionCount(), GetOrCreateSensor(), GetStamp(), carla::ros2::ROS2::Stamp::nanoseconds, PublishTransform(), carla::ros2::Radar, and carla::ros2::ROS2::Stamp::seconds.
| void carla::ros2::ROS2::ProcessDataFromSemanticLidar | ( | uint64_t | sensor_type, |
| carla::streaming::detail::stream_id_type | stream_id, | ||
| const carla::geom::Transform | sensor_transform, | ||
| carla::sensor::data::SemanticLidarData & | data, | ||
| void * | actor = nullptr ) |
Definition at line 781 of file ROS2.cpp.
References carla::sensor::data::SemanticLidarData::_ser_points, GetOrCreateSensor(), GetStamp(), carla::ros2::ROS2::Stamp::nanoseconds, PublishTransform(), carla::ros2::RayCastSemanticLidar, and carla::ros2::ROS2::Stamp::seconds.
| void carla::ros2::ROS2::ProcessDataFromStatusSensor | ( | uint64_t | sensor_type, |
| carla::streaming::detail::stream_id_type | stream_id, | ||
| const carla::geom::Transform | sensor_transform, | ||
| const carla::sensor::s11n::VehicleStatusData & | data, | ||
| void * | vehicle_actor, | ||
| void * | actor ) |
Definition at line 846 of file ROS2.cpp.
References _autoware_status_publishers, _autoware_vehicles, _mutex, carla::sensor::s11n::VehicleStatusData::angVel_z_mps, carla::ros2::AUTONOMOUS, CASE, carla::sensor::s11n::VehicleStatusData::control_flags, carla::ros2::DRIVE, carla::ros2::DRIVE_10, carla::ros2::DRIVE_11, carla::ros2::DRIVE_12, carla::ros2::DRIVE_13, carla::ros2::DRIVE_14, carla::ros2::DRIVE_15, carla::ros2::DRIVE_16, carla::ros2::DRIVE_17, carla::ros2::DRIVE_18, carla::ros2::DRIVE_2, carla::ros2::DRIVE_3, carla::ros2::DRIVE_4, carla::ros2::DRIVE_5, carla::ros2::DRIVE_6, carla::ros2::DRIVE_7, carla::ros2::DRIVE_8, carla::ros2::DRIVE_9, carla::sensor::s11n::VehicleStatusData::gear, GetStamp(), carla::ros2::LEFT, carla::ros2::ROS2::Stamp::nanoseconds, carla::ros2::NEUTRAL, carla::ros2::NONE, carla::ros2::OFF, carla::ros2::REVERSE, carla::ros2::REVERSE_2, carla::ros2::RIGHT, carla::ros2::ROS2::Stamp::seconds, carla::sensor::s11n::VehicleStatusData::steer, carla::sensor::s11n::VehicleStatusData::turn_mask, carla::sensor::s11n::VehicleStatusData::vel_x_mps, and carla::sensor::s11n::VehicleStatusData::vel_y_mps.
|
private |
Definition at line 555 of file ROS2.cpp.
References _mutex, BuildParentChain(), GetOrCreateTransformPublisherLocked(), carla::geom::Transform::location, LookupFrameId(), carla::ros2::ROS2::Stamp::nanoseconds, carla::geom::Rotation::pitch, carla::geom::Rotation::roll, carla::geom::Transform::rotation, carla::ros2::ROS2::Stamp::seconds, carla::geom::Vector3D::x, carla::geom::Vector3D::y, carla::geom::Rotation::yaw, and carla::geom::Vector3D::z.
Referenced by ProcessDataFromAutowareGNSS(), ProcessDataFromCamera(), ProcessDataFromCollisionSensor(), ProcessDataFromDVS(), ProcessDataFromGNSS(), ProcessDataFromIMU(), ProcessDataFromLidar(), ProcessDataFromRadar(), and ProcessDataFromSemanticLidar().
| void carla::ros2::ROS2::RegisterSensor | ( | void * | actor, |
| std::string | ros_name, | ||
| std::string | frame_id, | ||
| bool | publish_tf ) |
Definition at line 194 of file ROS2.cpp.
References _mutex, _registrations, and DropPublishersLocked().
| void carla::ros2::ROS2::RegisterVehicle | ( | void * | actor, |
| std::string | ros_name, | ||
| std::string | frame_id, | ||
| ActorCallback | callback, | ||
| bool | enable_ackermann_control = false, | ||
| bool | enable_autoware_control = false ) |
Definition at line 218 of file ROS2.cpp.
References _actor_callbacks, _autoware_vehicles, _mutex, _registrations, _subscribers, BuildBaseTopicName(), and DropPublishersLocked().
| void carla::ros2::ROS2::RemoveActorRosTopicName | ( | void * | actor | ) |
Definition at line 270 of file ROS2.cpp.
References _actor_ros_topic_names, _mutex, and DropPublishersLocked().
| void carla::ros2::ROS2::RemoveBasicSubscriberCallback | ( | void * | actor | ) |
Definition at line 311 of file ROS2.cpp.
Referenced by SetFrame().
|
inline |
Definition at line 142 of file ROS2.h.
References _mutex, and _publish_stream.
|
private |
Definition at line 376 of file ROS2.cpp.
References _registrations.
Referenced by GetOrCreateCameraSensor(), and GetOrCreateSensor().
| void carla::ros2::ROS2::SetFrame | ( | uint64_t | frame | ) |
Definition at line 121 of file ROS2.cpp.
References _actor_callbacks, _frame, _mutex, _subscribers, carla::ros2::MessageControl::message, and RemoveBasicSubscriberCallback().
|
inline |
Definition at line 85 of file ROS2.h.
References _publish_tf.
| void carla::ros2::ROS2::SetTimestamp | ( | double | timestamp | ) |
Definition at line 156 of file ROS2.cpp.
References _clock_publisher, _mutex, _stamp, carla::ros2::ROS2::Stamp::nanoseconds, and carla::ros2::ROS2::Stamp::seconds.
| void carla::ros2::ROS2::Shutdown | ( | ) |
Definition at line 983 of file ROS2.cpp.
References _actor_callbacks, _actor_parents, _actor_ros_topic_names, _autoware_status_publishers, _autoware_vehicles, _camera_publishers, _clock_publisher, _enabled, _mutex, _publishers, _registrations, _subscribers, and _transforms.
| void carla::ros2::ROS2::UnregisterSensor | ( | void * | actor | ) |
Definition at line 207 of file ROS2.cpp.
References _mutex, and UnregisterSensorLocked().
|
private |
Definition at line 212 of file ROS2.cpp.
References _actor_parents, _registrations, and DropPublishersLocked().
Referenced by UnregisterSensor(), and UnregisterVehicle().
| void carla::ros2::ROS2::UnregisterVehicle | ( | void * | actor | ) |
Definition at line 255 of file ROS2.cpp.
References _actor_callbacks, _autoware_status_publishers, _autoware_vehicles, _mutex, _subscribers, and UnregisterSensorLocked().
|
private |
Definition at line 344 of file ROS2.h.
Referenced by RegisterVehicle(), SetFrame(), Shutdown(), and UnregisterVehicle().
|
private |
Definition at line 338 of file ROS2.h.
Referenced by AddActorParentRosName(), BuildParentChain(), Shutdown(), and UnregisterSensorLocked().
|
private |
Definition at line 329 of file ROS2.h.
Referenced by AddActorRosTopicName(), BuildBaseTopicName(), GetActorRosTopicName(), HasTopicOverride(), RemoveActorRosTopicName(), and Shutdown().
|
private |
Definition at line 337 of file ROS2.h.
Referenced by ProcessDataFromStatusSensor(), Shutdown(), and UnregisterVehicle().
|
private |
Definition at line 332 of file ROS2.h.
Referenced by ProcessDataFromStatusSensor(), RegisterVehicle(), Shutdown(), and UnregisterVehicle().
|
private |
Definition at line 341 of file ROS2.h.
Referenced by DropPublishersLocked(), GetOrCreateCameraSensor(), and Shutdown().
|
private |
Definition at line 339 of file ROS2.h.
Referenced by Enable(), SetTimestamp(), and Shutdown().
|
private |
Definition at line 322 of file ROS2.h.
Referenced by Enable(), IsEnabled(), and Shutdown().
|
private |
Definition at line 324 of file ROS2.h.
Referenced by ProcessDataFromCamera(), ProcessDataFromObstacleDetection(), and SetFrame().
|
staticprivate |
Definition at line 315 of file ROS2.h.
Referenced by GetInstance().
|
mutableprivate |
Definition at line 320 of file ROS2.h.
Referenced by AddActorParentRosName(), AddActorRosTopicName(), Enable(), EnableStream(), GetActorRosTopicName(), GetOrCreateCameraSensor(), GetOrCreateSensor(), GetStamp(), IsStreamEnabled(), ProcessDataFromStatusSensor(), PublishTransform(), RegisterSensor(), RegisterVehicle(), RemoveActorRosTopicName(), ResetStreams(), SetFrame(), SetTimestamp(), Shutdown(), UnregisterSensor(), and UnregisterVehicle().
|
private |
Definition at line 343 of file ROS2.h.
Referenced by EnableStream(), IsStreamEnabled(), and ResetStreams().
|
private |
Definition at line 323 of file ROS2.h.
Referenced by GetOrCreateTransformPublisherLocked(), GetPublishTF(), and SetPublishTF().
|
private |
Definition at line 340 of file ROS2.h.
Referenced by DropPublishersLocked(), GetOrCreateSensor(), and Shutdown().
|
private |
Definition at line 327 of file ROS2.h.
Referenced by GetOrCreateTransformPublisherLocked(), IsKnownActorLocked(), LookupFrameId(), LookupRosName(), RegisterSensor(), RegisterVehicle(), ResolveAutoStreamSuffix(), Shutdown(), and UnregisterSensorLocked().
|
private |
Definition at line 325 of file ROS2.h.
Referenced by GetStamp(), and SetTimestamp().
|
private |
Definition at line 345 of file ROS2.h.
Referenced by RegisterVehicle(), SetFrame(), Shutdown(), and UnregisterVehicle().
|
private |
Definition at line 342 of file ROS2.h.
Referenced by DropPublishersLocked(), GetOrCreateTransformPublisherLocked(), and Shutdown().