Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion LibCarla/source/carla/client/Actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ namespace client {
}

geom::BoundingBox Actor::GetBoundingBox() const {
return GetEpisode().Lock()->GetActorBoundingBox(*this);
geom::BoundingBox bounding_box = GetEpisode().Lock()->GetActorBoundingBox(*this);
if (bounding_box.extent.x == 0.0f && bounding_box.extent.y == 0.0f && bounding_box.extent.z == 0.0f) {
return bounding_box;
}
else{
return Super::GetBoundingBox();
}
}

geom::Transform Actor::GetComponentWorldTransform(const std::string componentName) const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1348,9 +1348,6 @@ BIND_SYNC(is_sensor_enabled_for_ros) << [this](carla::streaming::detail::stream_
BIND_SYNC(get_actor_bounding_box) << [this](
cr::ActorId ActorId) -> R<cr::BoundingBox>
{
//return cr::BoundingBox();
// Commenting it out due to an unknown bug where sometimes the server tryes to act on a destroyed actor, crashing the simulation.

REQUIRE_CARLA_EPISODE();
FCarlaActor* CarlaActor = Episode->FindCarlaActor(ActorId);
if (!CarlaActor)
Expand Down