Skip to content

Commit

Permalink
fix: change_perception_reproducer_parameter (#57)
Browse files Browse the repository at this point in the history
* change reproducer cool down to 80 s

Signed-off-by: temkei.kem <[email protected]>

* change default parameter.

Signed-off-by: temkei.kem <[email protected]>

---------

Signed-off-by: temkei.kem <[email protected]>
  • Loading branch information
xtk8532704 authored Jun 21, 2024
1 parent d27cfe1 commit 760ca8f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, args):
time_diffs.append(time_diff)
prev_stamp = stamp

average_ego_odom_interval = 0.1 # sum(time_diffs) / len(time_diffs)
average_ego_odom_interval = sum(time_diffs) / len(time_diffs)
self.timer = self.create_timer(average_ego_odom_interval, self.on_timer)

# kill perception process to avoid a conflict of the perception topics
Expand Down Expand Up @@ -258,16 +258,16 @@ def find_nearby_ego_odom_indies(self, ego_poses: list, search_radius: float):
parser.add_argument(
"-r",
"--search-radius",
help="the search radius for searching rosbag's ego odom messages around the nearest ego odom pose (default is 2 meters), if the search radius is set to 0, it will always publish the closest message, just as the old reproducer did.",
help="the search radius for searching rosbag's ego odom messages around the nearest ego odom pose (default is 1.5 meters), if the search radius is set to 0, it will always publish the closest message, just as the old reproducer did.",
type=float,
default=2.0,
default=1.5,
)
parser.add_argument(
"-c",
"--reproduce-cool-down",
help="The cool down time for republishing published messages (default is 15.0 seconds)",
help="The cool down time for republishing published messages (default is 80.0 seconds)",
type=float,
default=15.0,
default=80.0,
)
args = parser.parse_args()

Expand Down

0 comments on commit 760ca8f

Please sign in to comment.