Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[観光むけ] カメラ切り替え機能 #219

Closed
6 tasks done
Tracked by #221
tmori opened this issue May 8, 2024 · 4 comments
Closed
6 tasks done
Tracked by #221

[観光むけ] カメラ切り替え機能 #219

tmori opened this issue May 8, 2024 · 4 comments

Comments

@tmori
Copy link
Contributor Author

tmori commented Jun 19, 2024

ボタンの仕様

  • U:b11
  • D:b12
  • L:b13
  • R:b14

@tmori
Copy link
Contributor Author

tmori commented Jun 19, 2024

通信仕様

https://github.com/toppers/hakoniwa-ros2pdu/blob/main/workspace/src/hako_msgs/msg/GameControllerOperation.msg

変更前:

float64[4] axis
bool[4] button

変更後:

float64[6] axis
bool[14] button

@tmori
Copy link
Contributor Author

tmori commented Jun 19, 2024

AirSim Python API

https://cosys-lab.github.io/image_apis/

@tmori
Copy link
Contributor Author

tmori commented Jun 20, 2024

HakoSim Python API案

AirSim:

client.simSetCameraOrientation(0, airsim.to_quaternion(0.261799, 0, 0)); #radians

HakoSim:

  • 単位はdegreeの方がわかりやすい
  • 変更できるのはピッチだけなので、ロール、ヨーは変更できなくて良い(誤解されたくない)

以上をまとめると、

deg = 10
client.simSetCameraOrientation(0, deg)

座標系はNED。
スクリーンショット 2024-06-21 6 09 44

@tmori tmori closed this as completed Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant