Getting "Cannot resolve symbol RobotActivity" with QiSDK

307 views
Skip to first unread message

Rocco Febbo

unread,
Jun 25, 2020, 6:42:11 PM6/25/20
to ROS Sig Aldebaran

Hello,

I am trying to get my pepper robot to perform some simple speech task. I can follow the tutorial all the way up to "Creating a robot application". It seems like step 2 where you "robotify" the application is not working correctly. It creates a file called robotsdk.xml in the assets/robot directory but did not do any other modifications as mentioned in the tutorial. When I copy the example code at the bottom of the tutorial into MainActivity.java I get the error in the title.

heres a link to the tutorial.

https://qisdk.softbankrobotics.com/sdk/doc/pepper-sdk/ch1_gettingstarted/starting_project.html

I have tried following the tutorial on a Windows 10 machine and a Linux machine and I get the same problem.

I am able to connect to the robot and slightly move the limbs around using the "Connect" button in the Pepper SDK in Android Studio.

I'm very new to this. If you have any recommendations, like a new approach entirely let me know. It seems there are many ways to interface with Pepper, but I cannot get any working. Is the Android approach the way to go? Can I still use ROS if I use the Android approach?

Sorry for the barrage of questions.

Thank you

Victor Paléologue

unread,
Jun 26, 2020, 2:38:14 AM6/26/20
to ros-sig-...@googlegroups.com
Don't be sorry and ask them on StackOverflow: https://stackoverflow.com/questions/tagged/pepper

--
You received this message because you are subscribed to the Google Groups "ROS Sig Aldebaran" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ros-sig-aldeba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ros-sig-aldebaran/5f9c914f-bd01-4b93-956c-1e3e382ccda9n%40googlegroups.com.

This email and any attachment thereto are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you are not the intended recipient, please be advised that disclosing, copying, distributing or taking any action in reliance on the contents of this email is strictly prohibited. In such case, please immediately advise the sender, and delete all copies and attachment from your system.
This email shall not be construed and is not tantamount to an offer, an acceptance of offer, or an agreement by SoftBank Robotics Europe on any discussion or contractual document whatsoever. No employee or agent is authorized to represent or bind SoftBank Robotics Europe to third parties by email, or act on behalf of SoftBank Robotics Europe by email, without express written confirmation by SoftBank Robotics Europe’ duly authorized representatives.


Ce message électronique et éventuelles pièces jointes sont confidentiels, et exclusivement destinés à la personne ou l'entité à qui ils sont adressés.
Si vous n'êtes pas le destinataire visé, vous êtes prié de ne pas divulguer, copier, distribuer ou prendre toute décision sur la foi de ce message électronique. Merci d'en aviser immédiatement l'expéditeur et de supprimer toutes les copies et éventuelles pièces jointes de votre système.
Ce message électronique n'équivaut pas à une offre, à une acceptation d’offre, ou à un accord de SoftBank Robotics Europe sur toute discussion ou document contractuel quel qu’il soit, et ne peut être interprété comme tel. Aucun employé ou agent de SoftBank Robotics Europe n'est autorisé à représenter ou à engager la société par email, ou à agir au nom et pour le compte de la société par email, sans qu’une confirmation écrite soit donnée par le représentant légal de SoftBank Robotics Europe ou par toute autre personne ayant reçu délégation de pouvoir appropriée.

Emile KROEGER

unread,
Jun 26, 2020, 3:27:30 AM6/26/20
to ros-sig-...@googlegroups.com
Hello Rocco,

normally robotifying the application also added a couple lines in your Gradle file, but sometimes those are not taken into account immediately, and you need to force a gradle sync (the little elephant icon in the top bar android studio), and then, you can can go on the RobotActivity in MainActivity.java, and hit alt-enter, and it will add the correct import to the top of the file (this won't work if you don't sync gradle first).

Regards,

Emile

--
You received this message because you are subscribed to the Google Groups "ROS Sig Aldebaran" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ros-sig-aldeba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ros-sig-aldebaran/5f9c914f-bd01-4b93-956c-1e3e382ccda9n%40googlegroups.com.

Samer Rihawi

unread,
Jun 27, 2020, 10:22:47 AM6/27/20
to ROS Sig Aldebaran
Hello,

I was trying the same with my NAO robot, and then I forced a gradle sync, yet the QiSDK "RobotActivity" is not resolved either.

Could you write down the lines you add to build.gradle as I believe it is the best way to force a gradle build.

Thanks a lot


On Friday, June 26, 2020 at 11:27:30 AM UTC+4, Émile KROEGER wrote:
Hello Rocco,

normally robotifying the application also added a couple lines in your Gradle file, but sometimes those are not taken into account immediately, and you need to force a gradle sync (the little elephant icon in the top bar android studio), and then, you can can go on the RobotActivity in MainActivity.java, and hit alt-enter, and it will add the correct import to the top of the file (this won't work if you don't sync gradle first).

Regards,

Emile

On Fri, Jun 26, 2020 at 12:42 AM 'Rocco Febbo' via ROS Sig Aldebaran <ros-sig-...@googlegroups.com> wrote:

Hello,

I am trying to get my pepper robot to perform some simple speech task. I can follow the tutorial all the way up to "Creating a robot application". It seems like step 2 where you "robotify" the application is not working correctly. It creates a file called robotsdk.xml in the assets/robot directory but did not do any other modifications as mentioned in the tutorial. When I copy the example code at the bottom of the tutorial into MainActivity.java I get the error in the title.

heres a link to the tutorial.

https://qisdk.softbankrobotics.com/sdk/doc/pepper-sdk/ch1_gettingstarted/starting_project.html

I have tried following the tutorial on a Windows 10 machine and a Linux machine and I get the same problem.

I am able to connect to the robot and slightly move the limbs around using the "Connect" button in the Pepper SDK in Android Studio.

I'm very new to this. If you have any recommendations, like a new approach entirely let me know. It seems there are many ways to interface with Pepper, but I cannot get any working. Is the Android approach the way to go? Can I still use ROS if I use the Android approach?

Sorry for the barrage of questions.

Thank you

--
You received this message because you are subscribed to the Google Groups "ROS Sig Aldebaran" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ros-sig-...@googlegroups.com.

Rocco Febbo

unread,
Jun 27, 2020, 1:31:20 PM6/27/20
to ROS Sig Aldebaran
I was able to get it working by downloading and opening this git repo with Android Studio. github.com/aldebaran/qisdk-tutorials 

Samer Rihawi

unread,
Jun 27, 2020, 1:33:26 PM6/27/20
to ROS Sig Aldebaran
Hello,

Thank you for your reply.

I went through the steps mentioned in the tutorial and I am still facing the same problem.

Rocco Febbo

unread,
Jun 27, 2020, 2:48:41 PM6/27/20
to ROS Sig Aldebaran
I'm not sure if there is some incompatibility with their plugin and something in Android Studio.

When I opened the project I linked above with Android Studio a bunch of stuff started downloading. After it was done I was able to build, run it in the emulator, and connect to the robot itself and run the tutorial. I've just been modifying the tutorial and it is working well. I was even able to connect it to Google Dialogflow.

Katharina Linden

unread,
Mar 4, 2021, 10:28:00 AM3/4/21
to ROS Sig Aldebaran
Hi - I am experiencing the very same problem! I suppose it has to do with the android.support dependency, but I can't get it solved. Did you find a solution in the meantime by any chance? 
Thank you a lot!

Reply all
Reply to author
Forward
0 new messages