Update number of python types
This commit is contained in:
parent
9a13090cc7
commit
05f23df0d6
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue