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

Simulation not navigating #41

Open
codymarquardt opened this issue Apr 17, 2020 · 4 comments
Open

Simulation not navigating #41

codymarquardt opened this issue Apr 17, 2020 · 4 comments

Comments

@codymarquardt
Copy link

I have successfully run the simulation using the command sequence:

source install_isolated/setup.bash
roslaunch usv_sim airboat_scenario1.launch parse:=true
roslaunch usv_sim airboat_scenario1.launch parse:=false

From this point, I had to open another terminal and run the command:

rosservice call /gazebo/unpause_physics "{}"

At this point, waves begin moving and the boat reacts to the waves/current, but the boat does not navigate between the buoys. From the documentation, it seemed to me that the navigation was built into this launch file. Am I mistaken?

Is there another command I need to run to make the boat navigate?

Any help would be appreciated!!

@sandeepwadhwa-ai
Copy link

I am also not able to get the boat to navigate. Don't know how to fix that. Was anybody able to do it?

@jasonjabbour
Copy link

same is happening to me, did you all find a solution?

@codymarquardt
Copy link
Author

Sorry guys, never got a solution to this and have moved on to other things

@jasonjabbour
Copy link

jasonjabbour commented Aug 6, 2022

for anyone looking for a solution in the future, try using different boat types and different scenarios. You should also start the ROS master node in a different terminal! This worked for me:

Terminal 1:
Start the Master ROS node
roscore

Terminal 2:
Source the environment
source install_isolated/setup.bash

Produce the spawner launch file (this command will end in red text, don't worry about it. The purpose of this command is to produce a new launch file within the usv_sim/launch/scenarios_launchs/ directory)
roslaunch usv_sim rudderboat_scenario_j1.launch parse:=true

Start the simulation
roslaunch usv_sim rudderboat_scenario_j1.launch parse:=false

Terminal 3:
Unpause gazebo:
rosservice call /gazebo/unpause_physics "{}"

You can also unpause gazebo using python. Take a look within the navigation scripts:

You can explore the different scenarios and boat types by following the same process for other scripts within this directory:
https://github.com/disaster-robotics-proalertas/usv_sim_lsa/tree/master/usv_sim/launch/scenarios_launchs

Hope this helps someone in the future!

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

3 participants