CARLA
Loading...
Searching...
No Matches
carla::rpc::Actor Class Reference

#include <Actor.h>

Public Member Functions

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

Public Attributes

geom::BoundingBox bounding_box
ActorDescription description
ActorId id = 0u
ActorId parent_id = 0u
std::vector< uint8_t > semantic_tags
uint64_t spawn_frame = 0u
 Server frame counter when a spawn call created this actor: snapshots up to and including this frame predate it.

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 stream_token.

◆ HasAStream()

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

◆ MSGPACK_DEFINE_ARRAY()

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

Member Data Documentation

◆ bounding_box

◆ description

◆ id

◆ parent_id

◆ semantic_tags

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

◆ spawn_frame

uint64_t carla::rpc::Actor::spawn_frame = 0u

Server frame counter when a spawn call created this actor: snapshots up to and including this frame predate it.

0 when the actor did not come from a spawn call, or from a server that does not report it. Last in the array so that either side reads the other's older layout.

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

Referenced by FCarlaServer::FPimpl::BindActions(), MSGPACK_DEFINE_ARRAY(), carla::client::detail::Simulator::SpawnActor(), and TEST().

◆ stream_token

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

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

Referenced by GetStreamToken(), HasAStream(), and MSGPACK_DEFINE_ARRAY().


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