-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔀️ Merge branch 'hugo/feature/Add-RemoteArrowStandard'
- Loading branch information
Showing
13 changed files
with
179 additions
and
25 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
...urces/Content/activities/remotes/icons/remote_standard_arrows.activity.icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 93 additions & 0 deletions
93
...t/activities/remotes/remote_standard_arrows-5554CD696BB6492594082C5F8F895A85.activity.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# Leka - iOS Monorepo | ||
# Copyright APF France handicap | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
version: 1.0.0 | ||
|
||
uuid: 5554CD696BB6492594082C5F8F895A85 | ||
name: remote_standard_arrows | ||
|
||
created_at: "2024-03-04T18:07:12.519606" | ||
last_edited_at: "2024-04-10T16:32:10.108131" | ||
status: published | ||
|
||
authors: | ||
- leka | ||
|
||
skills: | ||
- sensory_interaction | ||
- gross_motor_skills | ||
|
||
tags: | ||
- robot_movements | ||
- robot_colors | ||
|
||
hmi: | ||
- tablet_robot | ||
|
||
types: | ||
- one_on_one | ||
- group | ||
|
||
locales: | ||
- en_US | ||
- fr_FR | ||
|
||
l10n: | ||
- locale: fr_FR | ||
details: | ||
icon: remote_standard_arrows | ||
|
||
title: Commande Standard | ||
subtitle: Flèches | ||
|
||
short_description: Contrôle Leka avec la télécommande, fais le se déplacer, | ||
changer de couleur ou lance le renforçateur de ton choix | ||
|
||
description: | | ||
La Commande Standard offre plusieurs fonctionnalités pour contrôler le robot : | ||
- La Commande Fléchée pour téléguider le robot | ||
- Les 5 renforçateurs de Leka | ||
- Une commande colorée pour colorer le robot dans différentes couleurs | ||
instructions: | | ||
- Pour faire se déplacer Leka, utiliser la Commande Fléchée en bas à gauche de l'écran. Appuyer sur les flèches pour choisir la direction du robot. | ||
- Pour lancer un ou plusieurs renforçateurs, appuyer sur leurs différents icones à gauche de l'écran de l'iPad. | ||
- Pour allumer le robot dans différentes couleurs, utiliser la commande colorée en bas à droite de l'écran. | ||
- locale: en_US | ||
details: | ||
icon: remote_standard_arrows | ||
|
||
title: Remote Standard | ||
subtitle: Arrows | ||
|
||
short_description: | | ||
Control Leka with the remote control, make him move, change color or throw the reinforcer of your choice | ||
description: | | ||
The Remote Standard offers several features to control the robot: | ||
- The Remote Arrow to remotely guide the robot | ||
- Leka’s 5 reinforcers | ||
- The colorful command to color the robot in different colors | ||
instructions: | | ||
- To move Leka, use the Remote Arrow at the bottom left of the screen. Press the arrows to choose the direction of the robot. | ||
- To launch one or more reinforcers, press their different icons on the left of the iPad screen. | ||
- To turn the robot on in different colors, use the colored command at the bottom right of the screen. | ||
exercises_payload: | ||
options: | ||
shuffle_exercises: false | ||
shuffle_groups: false | ||
|
||
exercise_groups: | ||
- group: | ||
- instructions: | ||
- locale: fr_FR | ||
value: Contrôle Leka avec la télécommande, fais le se déplacer, changer | ||
de couleur ou lance le renforçateur de ton choix | ||
- locale: en_US | ||
value: Control Leka with the remote control, make him move, change color | ||
or throw the reinforcer of your choice | ||
interface: remoteStandardArrow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...eEngineKit/Sources/Exercises/Specialized/RemoteStandard/RemoteStandard+ArrowCommand.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Leka - iOS Monorepo | ||
// Copyright APF France handicap | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import DesignKit | ||
import RobotKit | ||
import SwiftUI | ||
|
||
extension RemoteStandard { | ||
struct ArrowCommand: View { | ||
// MARK: Internal | ||
|
||
var body: some View { | ||
HStack(spacing: 150) { | ||
VStack(spacing: 200) { | ||
Spacer() | ||
|
||
RemoteArrowView(size: 130, xPosition: 130) | ||
} | ||
|
||
RadialLayout(firstButtonPosX: -120, firstButtonPosY: -200, angle: 90.0) { | ||
LedZoneSelectorView(displayMode: self.displayMode) | ||
|
||
ForEach(DisplayMode.allCases, id: \.self) { mode in | ||
LedZoneSelectorView.ModeButton(mode: mode, displayMode: self.$displayMode) | ||
} | ||
} | ||
} | ||
} | ||
|
||
// MARK: Private | ||
|
||
@State private var displayMode = DisplayMode.fullBelt | ||
} | ||
} | ||
|
||
#Preview { | ||
RemoteStandard.ArrowCommand() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters