Update number of python types

This commit is contained in:
Blyron 2024-06-26 10:14:14 +02:00
parent 9a13090cc7
commit 05f23df0d6
1 changed files with 4 additions and 1 deletions

View File

@ -356,7 +356,7 @@ namespace client {
inline std::ostream &operator<<(std::ostream &out, const ActorAttribute &attr) {
using Type = carla::rpc::ActorAttributeType;
static_assert(static_cast<uint8_t>(Type::SIZE) == 5u, "Please update this function.");
static_assert(static_cast<uint8_t>(Type::SIZE) == 6u, "Please update this function.");
out << "ActorAttribute(id=" << attr.GetId();
switch (attr.GetType()) {
case Type::Bool:
@ -374,6 +374,9 @@ namespace client {
case Type::RGBColor:
out << ",type=Color,value=" << attr.As<sensor::data::Color>();
break;
case Type::Vector:
out << ",type=vector,value= (not implemented yet)";
break;
default:
out << ",INVALID";
}