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

Problem with setting up Gazebo 9 with SITL and Ardurover #15

Closed
sashankmodali opened this issue Jun 7, 2019 · 5 comments
Closed

Problem with setting up Gazebo 9 with SITL and Ardurover #15

sashankmodali opened this issue Jun 7, 2019 · 5 comments

Comments

@sashankmodali
Copy link

Hi,
While starting Sitl for APMrover2 with a world file in gazebo 9 , The rover starts moving in a specific direction even without setting up any script file. I'm only using the file, sim_vehicle.py to start the simulation.

Could you tell me what is causing this issue? When I set the mass of the rover close to zero, it moves along one of the horizontal axes.

@SwiftGust
Copy link
Owner

Hello,
I need more to be able to help
sim_vehicle.py with which argument are you using?
You should note that gazebo usually works with physics engine.

I think it is probably something wrong with friction but I need more specifics.
Is always moves along random axes, not to the specific direction?
Is any of wheel turning?
Mass of which have you modified? base link of husky? (which I don't recommend to modify it)
Have you increased mass then?

@sashankmodali
Copy link
Author

Hi,
I used the command :
sim_vehicle.py -v APMrover2 -f gazebo-rover -m --mav10 --console -I1

The rover always moves in a specific direction depending on the mass. It's moving with the same speed but it changes direction quickly to that specific direction and then moves in a straight line. The wheels are turning. For the mass, yeah I modified that of the base link of husky.

@sashankmodali
Copy link
Author

Hi, please see this video for better understanding :
https://drive.google.com/open?id=1-C1BXmSqwDAaMw9gm9Lpv9MvmPO_hLPW

@SwiftGust
Copy link
Owner

SwiftGust commented Jun 11, 2019

@sashankmodali Okay, your video made me understood the problem right away.

This is ArduPilot Gazebo interface setting problem in the model file.
It looks like these offsets are changed as ArduRover changes.
Please modify offsets to 0.0.
https://github.com/SwiftGust/ardupilot_gazebo/blob/master/models/rover_ardupilot/model.sdf#L109-L161
And check default parameter is set for skid-to-steer rover.

@sashankmodali
Copy link
Author

Hi. The offsets were actually 0.0 and I changed them back to -0.5 and they started working. It doesn't move on its own now.

Thank you for your response.

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