Skip to content

環境依存の問題を解決 miniPCがUbuntu 22.04 - Humbleの場合で動作可能にする #123

@koukouda

Description

@koukouda

miniPC環境依存の問題を解決する。
元々は、miniPCの開発環境がUbuntu 24.04 - Jazzyであった。
今回、Ubuntu 22.04 - HumbleのminiPCで動かした際に、エラーが出たため解決する。

https://github.com/BabyTigers-R/rcll/blob/main/kachaka/ros2/btr2_game2025/btr2_game2025/btr2_rcll2025.py

def zoneToXY(self, zone):
        point = Pose2D()
        point.y = abs(int(zone)) % 10
        point.x = (abs(int(zone)) % 100) // 10

現状は、zone番号が1013になっており、これをxyに変換する際にエラーが出ていると考えられる。
エラーのメッセージより、左辺のpoint.yはfloatを求めているのに対して、右辺がintになっている可能性が考えられる。
float関数を挟むことで対処する。

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions