Skip to content

Commit

Permalink
fix ptg-configurator
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Jan 10, 2024
1 parent b5b9560 commit 14b327b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/ptg-configurator/ptgConfiguratorMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,9 @@ void ptgConfiguratorframe::rebuild3Dview()
double max_dist = TP_Obstacles[k];

{
const uint32_t maxStepByTime = max_draw_ptg_time / stepTime;
uint32_t maxStepByTime = max_draw_ptg_time / stepTime;
mrpt::keep_min<uint32_t>(
maxStepByTime, ptg->getPathStepCount(k) - 1);
double maxRenderDist = ptg->getPathDist(k, maxStepByTime);
mrpt::keep_min(max_dist, maxRenderDist);
}
Expand Down
1 change: 1 addition & 0 deletions doc/source/doxygen-docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- BUG FIXES:
- Fix wrong filenames in `rawlog-edit --externalize` when sensor labels contain the `/` character (e.g. mimicking ROS topic names).
- Fix crash in mrpt::ros2bridge::toROS() for XYZIRT point clouds.
- Fix exception while rendering paths in the `ptg-configurator` application.

# Version 2.11.5: Released Dec 21st, 2023
- Changes in libraries:
Expand Down

0 comments on commit 14b327b

Please sign in to comment.