Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoussan committed Aug 13, 2024
1 parent bf30648 commit d80414e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion shared/ff_common/src/thread.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ void* ff_common::HolderFunction(void* ptr) {
}

ff_common::ThreadPool::ThreadPool()
: max_concurrent_jobs_(FLAGS_num_threads) {
//: max_concurrent_jobs_(FLAGS_num_threads) {
: max_concurrent_jobs_(30) {
pthread_mutex_init(&cond_mutex_, NULL);
pthread_cond_init(&cond_, NULL);
if (max_concurrent_jobs_ <= 0) {
Expand Down
5 changes: 1 addition & 4 deletions tools/localization_analysis/scripts/groundtruth_sweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ def check_params(groundtruth_params_list):
if not os.path.isfile(params.base_surf_map):
print(("Base surf map " + params.base_surf_map + " does not exist."))
sys.exit()
if not os.path.isdir(params.maps_directory):
print(("Maps directory " + params.maps_directory + " does not exist."))
sys.exit()
if not os.path.isfile(params.loc_map):
print(("Loc map " + params.loc_map + " does not exist."))
sys.exit()
Expand Down Expand Up @@ -118,7 +115,7 @@ def groundtruth_sweep(config_file, num_processes):
)
parser.add_argument(
"config_file",
help="Config file containing arguments for each job to run. Should be formatted with one job per line and using a single space between each argument. Arguments for a job in order are: bagfile base_surf_map maps_directory loc_map config_path world image_topic robot_name use_image_features. See make_groundtruth.py description for more details on each argument.",
help="Config file containing arguments for each job to run. Should be formatted with one job per line and using a single space between each argument. Arguments for a job in order are: bagfile base_surf_map loc_map image_topic use_image_features. See make_groundtruth.py description for more details on each argument.",
)
parser.add_argument("-o", "--output-directory", default="groundtruth_sweep")
parser.add_argument(
Expand Down

0 comments on commit d80414e

Please sign in to comment.