Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to fix the code to make it run muti times #27

Open
ZOUYIyi opened this issue Mar 6, 2024 · 1 comment
Open

how to fix the code to make it run muti times #27

ZOUYIyi opened this issue Mar 6, 2024 · 1 comment

Comments

@ZOUYIyi
Copy link

ZOUYIyi commented Mar 6, 2024

if we launch it sever times ,we can make a better result, but how can we fix the code to make it run N times

@sahith-chada
Copy link

You could write a simple .sh script to run the launch file iteratively. Something like this-

#!/bin/bash

# Loop to run the roslaunch command 10 times sequentially
for i in {1..10}
do
  echo "Starting launch instance $i"
  
  # Launch the ROS node and wait for it to complete
  roslaunch hba hba.launch
  
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants