Skip to content

Commit

Permalink
Merge branch 'humble' into humble
Browse files Browse the repository at this point in the history
  • Loading branch information
sjahr authored Oct 29, 2024
2 parents 4917d50 + f6b82c6 commit 3927b39
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 6 additions & 1 deletion moveit_configs_utils/moveit_configs_utils/launches.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,12 @@ def generate_move_group_launch(moveit_config):
)
)
# inhibit these default MoveGroup capabilities (space separated)
ld.add_action(DeclareLaunchArgument("disable_capabilities", default_value=""))
ld.add_action(
DeclareLaunchArgument(
"disable_capabilities",
default_value=moveit_config.move_group_capabilities["disable_capabilities"],
)
)

# do not copy dynamics information from /joint_states to internal robot monitoring
# default to false, because almost nothing in move_group relies on this information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ class MoveItConfigs:
# A dictionary that has the sensor 3d configuration parameters.
sensors_3d: Dict = field(default_factory=dict)
# A dictionary containing move_group's non-default capabilities.
move_group_capabilities: Dict = field(default_factory=dict)
move_group_capabilities: Dict = field(
default_factory=lambda: {"capabilities": "", "disable_capabilities": ""}
)
# A dictionary containing the overridden position/velocity/acceleration limits.
joint_limits: Dict = field(default_factory=dict)
# A dictionary containing MoveItCpp related parameters.
Expand Down
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 3927b39

Please sign in to comment.