Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ android.enableJetifier=true
kotlin.code.style=official

GROUP=com.robotemi
VERSION_NAME=1.136.0.11-SNAPSHOT
VERSION_NAME=1.136.0.12-SNAPSHOT
POM_URL=https://github.com/robotemi/sdk/
POM_SCM_URL=https://github.com/robotemi/sdk/
POM_SCM_CONNECTION=scm:git:git://github.com/robotemi/sdk.git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2484,6 +2484,7 @@ class MainActivity : AppCompatActivity(), NlpListener, OnRobotReadyListener,
TtsRequest.Language.MS_MY -> Locale("ms", "MY")
TtsRequest.Language.VI_VN -> Locale("vi", "VN")
TtsRequest.Language.EL_GR -> Locale("el", "GR")
TtsRequest.Language.AZ_AZ -> Locale("az", "AZ")
else -> if (robot.launcherVersion.contains("china")) {
Locale.SIMPLIFIED_CHINESE
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import com.robotemi.sdk.SttLanguage
import com.robotemi.sdk.SttRequest
import com.robotemi.sdk.TtsRequest
import com.robotemi.sdk.constants.SequenceCommand
import com.robotemi.sdk.navigation.model.Position
import com.robotemi.sdk.voice.WakeupRequest

class TemiBroadcastReceiver : BroadcastReceiver() {
Expand Down Expand Up @@ -173,6 +172,7 @@ class TemiBroadcastReceiver : BroadcastReceiver() {
16 -> Robot.getInstance().wakeup(listOf(SttLanguage.EL_GR))
17 -> Robot.getInstance().wakeup(listOf(SttLanguage.EL_GR), WakeupRequest(wakeupResponse = false))
18 -> Robot.getInstance().wakeup(listOf(SttLanguage.EL_GR), WakeupRequest(wakeupResponse = true))
19 -> Robot.getInstance().wakeup(listOf(SttLanguage.AZ_AZ), WakeupRequest(wakeupResponse = true))
}
}
ACTION_GOTO -> {
Expand Down
7 changes: 7 additions & 0 deletions sdk/src/main/java/com/robotemi/sdk/Robot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,7 @@ class Robot private constructor(private val context: Context) {
*
* @return Result of current position or Position(0, 0, 0, 0) if failed.
*/
@WorkerThread
fun getPosition(): Position {
return sdkService?.getPosition(applicationInfo.packageName) ?: Position(0f, 0f, 0f, 0)
}
Expand Down Expand Up @@ -3366,8 +3367,11 @@ class Robot private constructor(private val context: Context) {
/**
* Get map elements, such as locations, virtual walls, green paths, etc.
*
* @throws IllegalArgumentException This should not happen. Just add this for future compatibility.
* @return Map elements.
*/
@WorkerThread
@Throws(IllegalArgumentException::class)
fun getMapElements(): List<Layer>? {
if (checkSelfPermission(Permission.MAP) == Permission.DENIED) {
Log.e(TAG, "getMapElements() - Permission denied")
Expand Down Expand Up @@ -3400,8 +3404,11 @@ class Robot private constructor(private val context: Context) {
/**
* Get map image and map info.
*
* @throws IllegalArgumentException This should not happen. Just add this for future compatibility.
* @return Map data model with only map image and map info
*/
@WorkerThread
@Throws(IllegalArgumentException::class)
fun getMapImage(): MapDataModel? {
if (checkSelfPermission(Permission.MAP) == Permission.DENIED) {
Log.e(TAG, "getMapElements() - Permission denied")
Expand Down
2 changes: 2 additions & 0 deletions sdk/src/main/java/com/robotemi/sdk/SttLanguage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ enum class SttLanguage(val value: Int) {
VI_VN(23), // Supported from 134 version
RU_RU(24), // Supported from 134 version
EL_GR(25), // Supported from 134 version
AZ_AZ(26), // Supported from 136 version
;

companion object {
Expand Down Expand Up @@ -60,6 +61,7 @@ enum class SttLanguage(val value: Int) {
23 -> VI_VN
24 -> RU_RU
25 -> EL_GR
26 -> AZ_AZ
else -> SYSTEM
}
}
Expand Down
2 changes: 2 additions & 0 deletions sdk/src/main/java/com/robotemi/sdk/TtsRequest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ data class TtsRequest(
FR_FR(12), FR_CA(13), PT_BR(14), AR_EG(15), AR_AE(16), AR_XA(17),
RU_RU(18), IT_IT(19), PL_PL(20), ES_ES(21), CA_ES(22), HI_IN(23),
ET_EE(24), TR_TR(25), EN_IN(26), MS_MY(27), VI_VN(28), EL_GR(29),
AZ_AZ(30)
;

companion object {
Expand Down Expand Up @@ -108,6 +109,7 @@ data class TtsRequest(
27 -> MS_MY
28 -> VI_VN
29 -> EL_GR
30 -> AZ_AZ
else -> SYSTEM
}
}
Expand Down