You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-9Lines changed: 10 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,6 @@ This video was filmed at SoftBank Robotics Europe, and shows the basic control s
12
12
13
13
## Getting Started
14
14
15
-
16
15
### Prerequisites
17
16
18
17
A robotified project for Pepper with QiSDK. Read the [documentation](https://developer.softbankrobotics.com/pepper-qisdk) if needed
@@ -41,7 +40,6 @@ Full implementation details are available to see in the sample project.
41
40
42
41
Make sure to replace 'Tag' by the number of the version of the library you want to use.
43
42
44
-
45
43
## Usage
46
44
47
45
*This README assumes some standard setup can be done by the user, such as initialising variables or implementing code in the correct functions. Refer to the Sample Project for full usage code.*
@@ -50,8 +48,7 @@ Initialise the QISDK in the onCreate. If you are unsure how to do this, refer to
50
48
51
49
QiSDK.register(this, this)
52
50
53
-
In the `onRobotFocusGained`, disable BasicAwareness, and instantiate a `RemoteRobotController` object by passing it the QiContext.
54
-
51
+
In the `onRobotFocusGained`, disable BasicAwareness, and instantiate a `RemoteRobotController` object by passing it the QiContext. Then start it.
55
52
56
53
```
57
54
override fun onRobotFocusGained(qiContext: QiContext) {
@@ -68,17 +65,13 @@ override fun onRobotFocusGained(qiContext: QiContext) {
Get the position of the controller and call updateTarget method. It is important to call this function in a thread, as it is using references to the QISDK.
You can stop `RemoteRobotController` object whenever you want by calling the `stop()` method. This can be helpfull if you want to run animations for instance:
123
+
124
+
```
125
+
remoteRobotController.stop()
126
+
myCustomAnimation.run()
127
+
remoteRobotController.start()
128
+
```
129
+
129
130
## License
130
131
131
132
This project is licensed under the BSD 3-Clause "New" or "Revised" License- see the [COPYING](COPYING.md) file for details
Copy file name to clipboardExpand all lines: pepper-gamepad-root/pepper-gamepad/src/main/java/com/softbankrobotics/peppergamepad/RemoteRobotController.kt
<item>Génial, on part en balade! Prends ta manette, jette un oeil aux contrôles et on y va!</item>
8
6
<item>Super, j\'avais hâte de me dégourdir les roues! J\'espère que tu as ta manette, je t\'affiche un petit rappel des contrôles avant d\'y aller.</item>
0 commit comments