Maritime-Robotics-Student-Society / sailing-robot

Southampton sailing robot
http://www.sotonsailrobot.org
Other
88 stars 46 forks source link

Always jibe parameter is not working properly #137

Closed Nanoseb closed 8 years ago

Nanoseb commented 8 years ago

I have tested the parameter jibe_to_turn in the simulator, in this case it worked once but on the second jibe it starts making 360° and after 3-4 of them the boat goes in the exact opposite direction to the waypoint.

And sometime it is even without making 360° but the boat directly goes in the opposite direction.

Nanoseb commented 8 years ago

Some more info, when the boat goes away from the waypoint its sailing_state is normal and during 360° it is jibe_to_port_tack the entire time.

Here the boat starts to make loops, the wind is coming from the north and the waypoint is the one on the top right. 160902--1472836847

Wind conditions are the same, and the boat didn't make any 360 here. The sailing_state alternates between normal and jibe_to_port_tack. 160902--1472837187

Also sometimes the boat also just keeps making 360.

Nanoseb commented 8 years ago

I have tried some things but same result...

Anyway I have tried my 'force_jibe' node that is making the boat jibe when a tack is failing (= take too much time), and this one is working well so maybe the always jibe is not entirely needed.

takluyver commented 8 years ago

I've tracked down the going round in circles issue - I'd missed out the el of an elif. I'm less sure about what makes it head off in the wrong direction.

@Nanoseb rviz doesn't work on my ROS VM (it segfaults) - do you have time to test this again, since you can see better than me what's going on?

Nanoseb commented 8 years ago

Yes, I can test this right now.

takluyver commented 8 years ago

Thanks! :smiley:

Nanoseb commented 8 years ago

Ok it seems to work correctly now!

takluyver commented 8 years ago

Excellent. Those two characters make all the difference :-)

Nanoseb commented 8 years ago

Can you make it so that it will try to jibe only when a certain topic is published ? (so we can detect if a tack is failing)

takluyver commented 8 years ago

I'm not exactly sure what you're thinking. I'm trying to work on #51 now, so if you can see what you need to do, go for it.