# Next Steps

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/ai-plank-tutor/)
- [Set up AI Plank Tutor](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/ai-plank-tutor/1-introduce-plank-tutor/)
- [Get pose landmarks from camera](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/ai-plank-tutor/2-camera-pose-landmarks/)
- [Add scoring logic for the plank pose](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/ai-plank-tutor/3-plank-score/)
- [Turn pose data into a prompt for the local LLM](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/ai-plank-tutor/4-data-to-prompt/)
- [Run the LLM locally with AI Chat](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/ai-plank-tutor/5-llm-ai-chat/)
- [Connect coaching corrections to Android text-to-speech](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/ai-plank-tutor/6-android-tts/)
- [Explore options for tuning and extending AI Plank Tutor](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/ai-plank-tutor/7-extend/)
- [Next Steps](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/ai-plank-tutor/_next-steps/)

## Explore related resources
Find more information about the topics in this Learning Path:
- [Build a Hands-Free Selfie Android Application with MediaPipe](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/build-android-selfie-app-using-mediapipe-multimodality/)
- [Add an LLM to your Android app with Arm's AI Chat library](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/android-ai-chat-lib/)
- [AI Yoga Tutor](https://developer.arm.com/community/arm-community-blogs/b/ai-blog/posts/ai-yoga-tutor)
- [AI Chat library on GitHub](https://github.com/arm/ai-chat)
- [MediaPipe Pose Landmarker](https://ai.google.dev/edge/mediapipe/solutions/vision/pose_landmarker)
- [Android TextToSpeech](https://developer.android.com/reference/android/speech/tts/TextToSpeech)

## Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.

### Where should I add the CameraX initialization code?
Open `ui/MainActivity.kt` and replace the `TODO` in `setUpCamera()` with the provided `ProcessCameraProvider` snippet. When the provider is ready, the callback stores it and calls `bindCameraUseCases()`.

### What do I do if the camera doesn't detect pose landmarks?
After CameraX initializes and binds its use cases, MediaPipe Pose Landmarker should produce landmarks for each frame. If the camera preview appears but no pose landmarks are detected, make sure that you granted camera permission and that your full body is visible in the frame. Then, check Logcat for `PoseLandmarkerHelper` errors. If the preview doesn’t appear, confirm that `bindCameraUseCases()` runs after `ProcessCameraProvider` becomes available.

### What defines the reference pose and weighting used to score the plank?
`data/PlankPoseData.kt` contains `referenceLandmarks` for the instructor pose and `angleWeights` that set the importance of each joint. The app uses these values to calculate joint angles and a weighted score.

### How do I control which joint differences are sent to the LLM?
`ui/landmarker/PoseScoreHelper.kt` maps angles to names with `KEY_ANGLE_NAMES` and formats the largest differences in `angleDifference()`. Use the `filter` and `maxEntries` parameters to set a threshold and limit the entries included in the prompt.

### Where do I add the AI Chat dependency and which model format should I use?
Add `implementation("com.arm:ai-chat:0.1.0")` to the `dependencies` block in `app/build.gradle`, then sync the project.
