You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -87,10 +91,12 @@ ROS2-TMS-FOR-CONSTRUCTION has the following packages. You can see detail descrip
87
91
88
92
-[tms_sd_terrain](tms_sd/tms_sd_terrain)
89
93
90
-
tms_sd_terrain is a package for converting PointCloud2 msg to .pcd file and sending the file info to tms_db_writer_gridfs.
94
+
tms_sd_terrain is a package for handling point cloud data of static and dynamic terrain.
91
95
92
96
The received PointCloud2 msg is a point cloud data of terrain.
93
97
98
+
Static terrain refers to terrain that does not change during construction operations. And dynamic terrain refers to terrain that changes during construction work.
Copy file name to clipboardexpand all lines: tms_msg/README.md
+58-5
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,45 @@
1
1
# TMS Messages
2
2
3
-
Messages and Services used in ROS2-TMS-FOR-CONSTRUCTION.
3
+
Actinos, Messages and Services used in ROS2-TMS-FOR-CONSTRUCTION.
4
+
5
+
## Actions
6
+
7
+
### TmsdbGridFS
8
+
9
+
TmsdbGridFS is used by [tms_db_reader_gridfs](../tms_db/tms_db_manager/tms_db_manager/tms_db_reader_gridfs.py) to get file from TMS database.
10
+
11
+
```
12
+
string type
13
+
int32 id
14
+
string filename
15
+
bool latest_only
16
+
---
17
+
bool result
18
+
string msg
19
+
sensor_msgs/PointCloud2 pointcloud2
20
+
---
21
+
bool result
22
+
string msg
23
+
sensor_msgs/PointCloud2 pointcloud2
24
+
```
4
25
5
26
## Messages
6
27
28
+
### ColoredMesh
29
+
30
+
ColoredMesh is used by ColoredMeshSrv.
31
+
32
+
```
33
+
shape_msgs/MeshTriangle[] triangles
34
+
geometry_msgs/Point[] vertices
35
+
std_msgs/ColorRGBA[] vertex_colors
36
+
geometry_msgs/Vector3[] vertex_normals
37
+
38
+
```
39
+
7
40
### Tmsdb
8
41
9
-
Tmsdb is subscribed by [tms_db_writer](https://github.com/irvs/ros2_tms_for_construction/blob/main/tms_db/tms_db_manager/tms_db_manager/tms_db_writer.py).
42
+
Tmsdb is subscribed by [tms_db_writer](../tms_db/tms_db_manager/tms_db_manager/tms_db_writer.py).
TmsdbGridFS is subscribed by [tms_db_writer_gridfs](https://github.com/irvs/ros2_tms_for_construction/blob/main/tms_db/tms_db_manager/tms_db_manager/tms_db_writer_gridfs.py).
55
+
TmsdbGridFS is subscribed by [tms_db_writer_gridfs](../tms_db/tms_db_manager/tms_db_manager/tms_db_writer_gridfs.py).
23
56
24
57
```
25
58
string time # Time this msg was created.
@@ -30,9 +63,29 @@ string filename # File name of the file to be stored in the database.
30
63
31
64
## Services
32
65
66
+
### ColoredMeshSrv
67
+
68
+
ColoredMeshSrv is used by [tms_ur_construction_terrain_static](../tms_ur/tms_ur_construction/tms_ur_construction/tms_ur_construction_terrain_static.py) to get colored mesh data of static terrain.
69
+
70
+
```
71
+
string type
72
+
---
73
+
tms_msg_db/ColoredMesh colored_mesh
74
+
```
75
+
76
+
### TerrainStaticSrv
77
+
78
+
TerrainStaticSrv is used by [tms_ur_construction_terrain_mesh](../tms_ur/tms_ur_construction/tms_ur_construction/tms_ur_construction_terrain_mesh.py) to get point cloud data of static terrain.
79
+
80
+
```
81
+
string type
82
+
---
83
+
sensor_msgs/PointCloud2 pointcloud2
84
+
```
85
+
33
86
### TmsdbGetData
34
87
35
-
TmsdbGetData is used by [tms_db_reader](https://github.com/irvs/ros2_tms_for_construction/blob/main/tms_db/tms_db_manager/tms_db_manager/tms_db_reader.py) to get data from TMS database.
88
+
TmsdbGetData is used by [tms_db_reader](../tms_db/tms_db_manager/tms_db_manager/tms_db_reader.py) to get data from TMS database.
36
89
37
90
```
38
91
string type # Data type (ex. sensor, machine).
@@ -44,7 +97,7 @@ tms_msg_db/Tmsdb[] tmsdbs
44
97
45
98
### TmsdbGridFSGetData
46
99
47
-
TmsdbGetData is used by [tms_db_reader_gridfs](https://github.com/irvs/ros2_tms_for_construction/blob/main/tms_db/tms_db_manager/tms_db_manager/tms_db_reader_gridfs.py) to get file from TMS database.
100
+
TmsdbGetData is used by [tms_db_reader_gridfs](../tms_db/tms_db_manager/tms_db_manager/tms_db_reader_gridfs.py) to get file from TMS database.
After the below command, a node is executed that subscribes PointCloud2 and publishes TmsdbGridFS including the .pcd file info converted from the PointCloud2.
37
+
Detail description is [here](../../tms_sd/tms_sd_terrain)
38
+
39
+
Relay static terrain's PointCloud2 msg to tms_ss_terrain_static.
|`filename`| string |`filename`| .pcd file name of static terrain converted from PointCloud2 |
65
+
66
+
## 3. Run tms_ss_terrain_static
67
+
68
+
After the following command, a node is executed that subscribes PointCloud2 and publishes TmsdbGridFS including the .pcd or .ply file info converted from the PointCloud2.
tms_ss_terrain_static is a package for handling point cloud data of static terrain.
4
+
5
+
- tms_ss_terrain_static
6
+
7
+
tms_ss_terrain_static converts PointCloud2 msg to .pcd file and sends the file info to [tms_db_writer_gridfs](../../tms_db/tms_db_manager).
8
+
9
+
- tms_ss_terrain_static_mesh
10
+
11
+
tms_ss_terrain_static_mesh converts PointCloud2 msg to .ply (mesh) file and sends the file info to [tms_db_writer_gridfs](../../tms_db/tms_db_manager).
12
+
13
+
The received PointCloud2 msg is a point cloud data of static terrain.
14
+
3
15
# Usecase
4
16
17
+
## 1. Run tms_db_writer_gridfs or tms_db_manager
18
+
19
+
Detail description is [here](../../tms_db/tms_db_manager).
20
+
21
+
Receive TmsdbGridFS from tms_ss_terrain_static and store them in ROS2-TMS database.
After the following command, a node is executed that subscribes PointCloud2 and publishes TmsdbGridFS including the .pcd or .ply file info converted from the PointCloud2.
0 commit comments