GLOBAL SITE AUSTRALIAN SITE

Obstacle avoidance and sumo wrestling in the same program | EdPy Programming | Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic3
Obstacle avoidance and sumo wrestling in the same program
June 21, 2018
11:44 am
Talia
Member
Members
Forum Posts: 5
Member Since:
June 20, 2018
sp_UserOfflineSmall Offline

Hi,

Our team are competing in the robocup junior challenge where they first need to avoid an obstacle as they’re line tracking, but then push a ‘victim’ out of a coloured area at the end of the line. I’d thought I could use the ‘sumo wrestling’ for that. But how do I get the two pieces of programming to work at different times?

Thanks

June 22, 2018
10:00 am
Ben
Admin
Forum Posts: 179
Member Since:
August 24, 2015
sp_UserOfflineSmall Offline

Hi Talia,

What a fun sounding challenge. As it is a challenge though I don’t want to reveal everything to you.

What you will need to do is program a line tracking program inside a loop that will break once you see the object. Once that line tracking has finished inside the loop you should be able to program a new section of the code which may contain the sumo wrestling if you so choose.

GOOD LUCK!!!

June 24, 2018
6:45 pm
Talia
Member
Members
Forum Posts: 5
Member Since:
June 20, 2018
sp_UserOfflineSmall Offline

Thanks Isaac,

I’m the parent/coach not one of the competitors and I’m learning what I need to teach them the week before each class. Can you please give me an example of a loop that breaks? I’ve got my head round infinite loops but not ones that break on events… 

June 25, 2018
10:01 am
Ben
Admin
Forum Posts: 179
Member Since:
August 24, 2015
sp_UserOfflineSmall Offline

Hi,

You can change a loop from infinite to  break at event by changing the condition of the loop from “True” to an expression

here is an example of line tracking until an obstacle is seen: http://www.edpyapp.com/share/1LI0A

June 25, 2018
10:27 am
Talia
Member
Members
Forum Posts: 5
Member Since:
June 20, 2018
sp_UserOfflineSmall Offline

Thanks Ben, that’s very helpful! 

I’ll be able to stitch them together using this smile

  • Keep up with Edison

    Sign up for our newsletter to get all things Edison delivered straight to your inbox.

  • This field is for validation purposes and should be left unchanged.

Heads up

The Australian Federal Parliament has passed a law that extends goods and services tax (GST) to low value imports of physical goods imported by consumers from 1 July 2018.

This means that all customers purchasing Edison robots and accessories with an Australian shipping address must now pay GST. The GST will be automatically added to your purchase and show as a line item on your invoice.

We've detected that you are in Australia, so we wanted to let you know that we have changed your settings to view our Australian site, which displays GST inclusive pricing.

You can change back to the GLOBAL SITE at any time using the link in the top left of the page.

OK got it!    Take me to the GLOBAL SITE instead

Country

Pin It on Pinterest

Share This