Skip to content

Commit

Permalink
Cast of "max_velocity" and "max_acceleration" values to double (movei…
Browse files Browse the repository at this point in the history
…t#2803)

Co-authored-by: Henning Kayser <[email protected]>
  • Loading branch information
2 people authored and mikeferguson committed Oct 23, 2024
1 parent ccd3103 commit 49306f8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ bool SRDFConfig::GeneratedJointLimits::writeYaml(YAML::Emitter& emitter)

// Output property
emitter << YAML::Key << "max_velocity";
emitter << YAML::Value << std::min(fabs(b.max_velocity_), fabs(b.min_velocity_));
emitter << YAML::Value << static_cast<double>(std::min(fabs(b.max_velocity_), fabs(b.min_velocity_)));

// Output property
emitter << YAML::Key << "has_acceleration_limits";
Expand All @@ -307,7 +307,7 @@ bool SRDFConfig::GeneratedJointLimits::writeYaml(YAML::Emitter& emitter)

// Output property
emitter << YAML::Key << "max_acceleration";
emitter << YAML::Value << std::min(fabs(b.max_acceleration_), fabs(b.min_acceleration_));
emitter << YAML::Value << static_cast<double>(std::min(fabs(b.max_acceleration_), fabs(b.min_acceleration_)));

emitter << YAML::EndMap;
}
Expand Down

0 comments on commit 49306f8

Please sign in to comment.