toggle platform with environment var

This commit is contained in:
Balduin
2025-02-27 17:20:29 +01:00
parent 4b4876128d
commit 10b2321e87
@@ -68,8 +68,9 @@ GZBridge::~GZBridge()
int GZBridge::init()
{
// TODO make configurable in sensible way.
bool platform = true;
// TODO document this somehow
char *moving_platform = std::getenv("GZ_MOVING_PLATFORM");
bool platform = ((moving_platform != nullptr) && (std::strcmp(moving_platform, "1") == 0));
if (!_model_sim.empty()) {