Skip to content

Commit

Permalink
fix(perception_reproducer): fix a small bug (#155)
Browse files Browse the repository at this point in the history
* fix bug.

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

* style(pre-commit): autofix

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

---------

Signed-off-by: temkei.kem <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
xtk8532704 and pre-commit-ci[bot] authored Nov 22, 2024
1 parent 4fcb2d7 commit 2e13bf2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,7 @@ def add_perception_noise(
)
args = parser.parse_args()

if not args.bag:
parser.error("The '--bag' argument is required.")
rclpy.init()

if args.pub_route:
pub_route(args.bag)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,6 @@ def get_pose_from_bag(input_path: str, interval=(0.1, 10000.0)) -> Tuple[Pose, P


def pub_route(input_path: str):
rclpy.init()

try:
first_pose, last_pose = get_pose_from_bag(input_path)
except Exception as e:
Expand Down

0 comments on commit 2e13bf2

Please sign in to comment.