Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AdMapAccess::initializeFromOpenDriveContent() failed #152

Open
wardstoneX opened this issue Dec 7, 2024 · 2 comments
Open

AdMapAccess::initializeFromOpenDriveContent() failed #152

wardstoneX opened this issue Dec 7, 2024 · 2 comments

Comments

@wardstoneX
Copy link

Hi, i was doing some stuff with rss sensor, at first i was getting no errors, but later i looked i started getting this error:

Use 'default' RSS Parameters
[2024-12-07 18:37:20.732] [ad_map_access] [error] AdMapAccess::initializeFromOpenDriveContent() failed; already initialized with different store object or content
ERROR: Actor 8149 (sensor.other.rss) : Initialization of map failed
ERROR: Actor 8149 (sensor.other.rss) : not yet listening. SetLogLevel has no effect.
ERROR: Actor 8149 (sensor.other.rss) : not yet listening. SetMapLogLevel has no effect.
ERROR: Actor 8149 (sensor.other.rss) : not yet listening. SetRoadBoundariesMode has no effect.
ERROR: Actor 8149 (sensor.other.rss) : not yet listening. ResetRoutingTargets has no effect.

anyone knows why this could happen

@wardstoneX
Copy link
Author

wardstoneX commented Dec 7, 2024

i dont understand much whats happening in cpp files but,
` auto mapInitializationResult = ::ad::map::access::initFromOpenDriveContent(
open_drive_content, 0.2, ::ad::map::intersection::IntersectionType::TrafficLight,
::ad::map::landmark::TrafficLightType::LEFT_STRAIGHT_RED_YELLOW_GREEN);

if (!mapInitializationResult) {
log_error(GetDisplayId(), ": Initialization of map failed");
return;
}` fails, in RssSensor::Listen method, if i add here a AdMapAccess::reset() and compile rss carla again, would it solve this issue ? or add the reset into AdMapAccess::initializeFromOpenDriveContent, would it solve the issue, im lost

@berndgassmann
Copy link
Collaborator

Hi,
Hmm, that's interesting that no one else found that problem so far.
I guess you are using multiple RSSSensors (or multiple vehicles with attached RSSSensor).

The cleanup() call before would most probably help, yes. But since at that time most probably the other Sensor is already running that might be not a good idea.

Here:
https://github.com/carla-simulator/carla/blob/ue4-dev/LibCarla/source/carla/rss/RssSensor.cpp#L83
the global_map_initialization_counter is increased.

Maybe a better solution would to surround the init code
https://github.com/carla-simulator/carla/blob/ue4-dev/LibCarla/source/carla/rss/RssSensor.cpp#L70-L81
by a check:

if (global_map_initialization_counter == 0u)
{
// only initialize the map if not already done within that episode
}

Alternatively if you don't want to recompile, consider to use only one single RssSensor for the moment.

Regards,
Bernd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants