Skip to content

Commit

Permalink
Set numerical precision
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 856c009 commit dd323a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nexus_motion_planner/src/motion_plan_cache.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ namespace motion_planner {
* - Final pose (wrt. `planning_frame` (usually `base_link`))
* - Final robot joint states
*
* Motion plans may be looked up with some tolerance.
* Motion plans may be looked up with some tolerance at call time.
*/
class MotionPlanCache
{
Expand All @@ -80,7 +80,7 @@ class MotionPlanCache
void init(
const std::string& db_path = ":memory:",
uint32_t db_port = 0,
double exact_match_precision = 0.00001);
double exact_match_precision = 1e-6);

// TOP LEVEL OPS =============================================================
std::vector<
Expand Down Expand Up @@ -140,7 +140,7 @@ class MotionPlanCache
rclcpp::Node::SharedPtr node_;
warehouse_ros::DatabaseConnection::Ptr db_;

double exact_match_precision_ = 0;
double exact_match_precision_ = 1e-6;

std::unique_ptr<tf2_ros::Buffer> tf_buffer_;
std::shared_ptr<tf2_ros::TransformListener> tf_listener_;
Expand Down

0 comments on commit dd323a5

Please sign in to comment.