Skip to content

Commit

Permalink
fix bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
xtk8532704 committed Nov 20, 2024
1 parent 7540d85 commit cff43cd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 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,7 +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)
Expand Down

0 comments on commit cff43cd

Please sign in to comment.