Skip to content

Commit

Permalink
Add comments for exact match tolerance
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <[email protected]>
  • Loading branch information
methylDragon committed Nov 20, 2023
1 parent 6004f96 commit ccbf91c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions nexus_motion_planner/src/motion_planner_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ MotionPlannerServer::MotionPlannerServer(const rclcpp::NodeOptions& options)
"Setting parameter cache_db_port to [%d]", _cache_db_port
);

// For floating point comparison, what counts as an "exact" match.
_cache_exact_match_tolerance = this->declare_parameter(
"cache_exact_match_tolerance", 0.0005); // ~0.028 degrees per joint
RCLCPP_INFO(
Expand Down
2 changes: 1 addition & 1 deletion nexus_motion_planner/src/motion_planner_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class MotionPlannerServer : public rclcpp_lifecycle::LifecycleNode
std::string _cache_db_plugin;
std::string _cache_db_host;
int _cache_db_port;
double _cache_exact_match_tolerance;
double _cache_exact_match_tolerance; // for floating point comparison
double _cache_start_match_tolerance;
double _cache_goal_match_tolerance;

Expand Down

0 comments on commit ccbf91c

Please sign in to comment.