Skip to content

Commit

Permalink
[visualization] Make LCM CONTACT_RESULTS from ApplyVisualizationConfi…
Browse files Browse the repository at this point in the history
…g() respect publish_period (RobotLocomotion#19590)

- It was hardcoded to 1/64 seconds before this fix.
  • Loading branch information
DamrongGuoy authored Jun 14, 2023
1 parent 4fcc25d commit 3b57c2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion visualization/visualization_config_functions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ void ApplyVisualizationConfigImpl(const VisualizationConfig& config,
DrakeVisualizer<double>::AddToBuilder(builder, *scene_graph, lcm, oopsie);
}
if (config.publish_contacts) {
ConnectContactResultsToDrakeVisualizer(builder, plant, *scene_graph, lcm);
ConnectContactResultsToDrakeVisualizer(builder, plant, *scene_graph, lcm,
config.publish_period);
}

if (config.publish_inertia) {
Expand Down

0 comments on commit 3b57c2d

Please sign in to comment.