Skip to content

Commit

Permalink
Merge branch 'gz-sim8' into merge_7_8_20240731
Browse files Browse the repository at this point in the history
  • Loading branch information
iche033 committed Aug 12, 2024
2 parents 85254b9 + c48fa58 commit d57ac10
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/SimulationRunner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,14 @@ SimulationRunner::SimulationRunner(const sdf::World &_world,
: sdfWorld(_world), serverConfig(_config)
{
// Keep world name
this->worldName = _world.Name();
this->worldName = transport::TopicUtils::AsValidTopic(_world.Name());

if (this->worldName.empty())
{
gzerr << "Can't start simulation runner with this world name ["
<< _world.Name() << "]." << std::endl;
return;
}

this->parametersRegistry = std::make_unique<
gz::transport::parameters::ParametersRegistry>(
Expand Down
5 changes: 5 additions & 0 deletions src/systems/ackermann_steering/AckermannSteering.cc
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,11 @@ void AckermannSteering::PostUpdate(const UpdateInfo &_info,
// Nothing left to do if paused.
if (_info.paused)
return;

if (this->dataPtr->leftSteeringJoints.empty() ||
this->dataPtr->rightSteeringJoints.empty())
return;

if (this->dataPtr->steeringOnly)
{
this->dataPtr->UpdateAngle(_info, _ecm);
Expand Down

0 comments on commit d57ac10

Please sign in to comment.