CARLA
Public Member Functions | Public Attributes | List of all members
carla::rpc::Actor Class Reference

#include <Actor.h>

+ Collaboration diagram for carla::rpc::Actor:

Public Member Functions

 Actor ()=default
 
 MSGPACK_DEFINE_ARRAY (id, parent_id, description, bounding_box, semantic_tags, stream_token)
 

Public Attributes

geom::BoundingBox bounding_box
 
ActorDescription description
 
ActorId id = 0u
 
ActorId parent_id = 0u
 
std::vector< uint8_t > semantic_tags
 

Sensor functionality

Todo:
This is only used by sensors actually.
std::vector< unsigned char > stream_token
 
bool HasAStream () const
 
streaming::Token GetStreamToken () const
 

Detailed Description

Definition at line 20 of file rpc/Actor.h.

Constructor & Destructor Documentation

◆ Actor()

carla::rpc::Actor::Actor ( )
default

Member Function Documentation

◆ GetStreamToken()

streaming::Token carla::rpc::Actor::GetStreamToken ( ) const
inline

Definition at line 45 of file rpc/Actor.h.

References carla::streaming::Token::data, DEBUG_ASSERT, HasAStream(), and MSGPACK_DEFINE_ARRAY().

Referenced by carla::client::detail::Simulator::DisableForROS(), carla::client::detail::Simulator::EnableForROS(), carla::client::detail::Simulator::IsEnabledForROS(), carla::client::detail::Simulator::SubscribeToSensor(), and carla::client::detail::Simulator::UnSubscribeFromSensor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HasAStream()

bool carla::rpc::Actor::HasAStream ( ) const
inline

Definition at line 41 of file rpc/Actor.h.

References carla::streaming::Token::data.

Referenced by GetStreamToken(), and carla::client::detail::ActorFactory::MakeActor().

+ Here is the caller graph for this function:

◆ MSGPACK_DEFINE_ARRAY()

carla::rpc::Actor::MSGPACK_DEFINE_ARRAY ( id  ,
parent_id  ,
description  ,
bounding_box  ,
semantic_tags  ,
stream_token   
)

Referenced by GetStreamToken().

+ Here is the caller graph for this function:

Member Data Documentation

◆ bounding_box

geom::BoundingBox carla::rpc::Actor::bounding_box

◆ description

ActorDescription carla::rpc::Actor::description

◆ id

ActorId carla::rpc::Actor::id = 0u

◆ parent_id

ActorId carla::rpc::Actor::parent_id = 0u

◆ semantic_tags

std::vector<uint8_t> carla::rpc::Actor::semantic_tags

◆ stream_token

std::vector<unsigned char> carla::rpc::Actor::stream_token

Definition at line 39 of file rpc/Actor.h.


The documentation for this class was generated from the following file: