Skip to content

Commit

Permalink
fix #21
Browse files Browse the repository at this point in the history
  • Loading branch information
tmori committed Jun 30, 2024
1 parent e68bd0f commit 66c954e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
27 changes: 21 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@
* バーチャル・ロボット(Twin)
* リアル世界のロボットのTwinです
* バーチャル世界のイベントをセンサデータとしてリアル世界のロボットに通知します
* バーチャル信号
* バーチャル世界の信号です
* 赤、黄、青の状態を持ちます
* リアル側
* インフラセンサ(LiDAR)
* リアルロボットの位置推定を行います
* リアル・ロボット(TODO)
* リアル・ロボット(TB3)
* インフラセンサの情報とバーチャル側のセンサ情報を入力として荷物運搬の制御を行います
* [箱庭ブリッジ](https://github.com/toppers/hakoniwa-bridge/tree/main)
* ShmProxy
Expand All @@ -35,19 +38,31 @@
* バーチャル・ドローンは、荷物集積場で荷物を受け取ります
* バーチャル・ドローンは、リアルロボットの位置を受信し、目標移動ポイントを設定します
* バーチャル・ドローンは、リアルロボットの位置まで移動します
* バーチャル・ドローンは、目標位置に到着したら高度をリアルロボット上の50cmあたりで泊まり、荷物を下ろします
* バーチャル・ドローンは、目標位置に到着したら高度をリアルロボット上の50cmあたりで止まり、荷物を下ろします
* 荷物を下ろした後、バーチャル・ドローンは、荷物集積場に戻ります
* バーチャル・ロボットのシナリオ
* バーチャル・ロボットは、リアル・ロボットの位置を受信し、バーチャル空間上の同じ位置に移動します
* バーチャル・ロボットは、荷物が置かれたことを検出するためのタッチセンサを装備しており、荷物の配置有無の情報を箱庭PDUデータで共有します
* バーチャル信号のシナリオ
* バーチャル信号は、決められたルールに従って、信号の状態を変更します
* ルール1. 赤 -> 黄 -> 青 の順番で遷移します
* ルール2. 赤の時間:10秒
* ルール3. 黄の時間:5秒
* ルール4. 青の時間:15秒
* ルール5. 青の時間が10秒経過したら、残り5秒間は点滅状態とする
* リアル・ロボットのシナリオ
* リアル・ロボットは、荷物を受け取る場所で待機状態として、停止しています
* リアル・ロボットは、荷物が置かれたことを検出した場合、前進します
* リアル・ロボットは、前進中に超音波センサで所定の目標位置に到達したことを検出すると停止します
* バーチャル・ロボットは、バーチャル信号のデータを検出し、その値に応じた回避行動を行います
* 赤信号:停止します
* 黄信号:停止します
* 青信号:前進します
* リアル・ロボットは、前進中にバーチャル・ロボットから自己位置を取得し、目標位置に到達したことを検出すると停止します
* リアル・ロボットは、目標地点に到着したことをバーチャル側に通知します
* バーチャル側でその通知を受け取ると、バーチャル側の操作で荷物を下ろします
* リアル・ロボットは、荷物が下ろされたことを検出すると、元の位置に後進し、待機状態に戻ります

* インフラセンサのシナリオ
* インフラセンサは、リアルロボットの位置を推定し、推定結果をリアルとバーチャル側に配信します

## アーキテクチャ

Expand All @@ -59,8 +74,8 @@
* MacOS
* リアル側
* RosProxy: Ubuntu(ROS2)
* Infra Sensor: TurtleBot3's LiDAR & Raspberry Pi3(ROS2)
* Real Robot: TODO & Raspberry Pi4(ROS2)
* Infra Sensor: HOKUYO URG-04LX-UG01
* Real Robot: TB3 & Raspberry Pi3(ROS2)

## インストール手順

Expand Down
2 changes: 1 addition & 1 deletion bridge
Submodule bridge updated 37 files
+58 −15 examples/CMakeLists.txt
+35 −6 examples/README-ja.md
+35 −6 examples/README.md
+9 −2 examples/build.bash
+3 −3 examples/custom.json
+0 −12 examples/include/geometry_msgs/pdu_ctype_Point.h
+0 −13 examples/include/geometry_msgs/pdu_ctype_Pose.h
+0 −14 examples/include/geometry_msgs/pdu_ctype_PoseWithCovariance.h
+0 −13 examples/include/geometry_msgs/pdu_ctype_Quaternion.h
+0 −13 examples/include/geometry_msgs/pdu_ctype_Transform.h
+0 −17 examples/include/geometry_msgs/pdu_ctype_TransformStamped.h
+0 −12 examples/include/geometry_msgs/pdu_ctype_Twist.h
+0 −13 examples/include/geometry_msgs/pdu_ctype_TwistWithCovariance.h
+0 −12 examples/include/geometry_msgs/pdu_ctype_Vector3.h
+0 −105 examples/include/geometry_msgs/pdu_ctype_conv_Point.hpp
+0 −103 examples/include/geometry_msgs/pdu_ctype_conv_Pose.hpp
+0 −108 examples/include/geometry_msgs/pdu_ctype_conv_PoseWithCovariance.hpp
+0 −109 examples/include/geometry_msgs/pdu_ctype_conv_Quaternion.hpp
+0 −103 examples/include/geometry_msgs/pdu_ctype_conv_Transform.hpp
+0 −112 examples/include/geometry_msgs/pdu_ctype_conv_TransformStamped.hpp
+0 −102 examples/include/geometry_msgs/pdu_ctype_conv_Twist.hpp
+0 −107 examples/include/geometry_msgs/pdu_ctype_conv_TwistWithCovariance.hpp
+0 −105 examples/include/geometry_msgs/pdu_ctype_conv_Vector3.hpp
+0 −28 examples/include/pdu_primitive_ctypes.h
+0 −10 examples/include/std_msgs/pdu_ctype_Bool.h
+0 −12 examples/include/std_msgs/pdu_ctype_Header.h
+0 −10 examples/include/std_msgs/pdu_ctype_String.h
+0 −97 examples/include/std_msgs/pdu_ctype_conv_Bool.hpp
+0 −104 examples/include/std_msgs/pdu_ctype_conv_Header.hpp
+0 −99 examples/include/std_msgs/pdu_ctype_conv_String.hpp
+20 −5 examples/sample.c
+1 −1 third-party/hakoniwa-ros2pdu
+35 −10 virtual/CMakeLists.txt
+9 −2 virtual/build.bash
+21 −7 virtual/shm-proxy/CMakeLists.txt
+2 −1 virtual/shm-proxy/src/shm_proxy.cpp
+12 −3 virtual/shm-proxy/src/shm_proxy_pdu.cpp

0 comments on commit 66c954e

Please sign in to comment.