@@ -9,7 +9,7 @@ plugin to update the scene using Gazebo Transport.
9
9
10
10
## Build
11
11
12
- ```
12
+ ``` bash
13
13
cd examples/standalone/scene_provider
14
14
mkdir build
15
15
cd build
21
21
22
22
In one terminal, start the scene provider:
23
23
24
- ```
24
+ ``` bash
25
25
cd examples/standalone/scene_provider/build
26
26
./scene_provider
27
27
```
28
28
29
29
On another terminal, start the example config:
30
30
31
- ```
31
+ ``` bash
32
32
gz gui -c examples/config/scene3d.config
33
33
```
34
34
@@ -42,24 +42,48 @@ Some commands to test camera tracking with this demo:
42
42
43
43
Move to box:
44
44
45
- ```
45
+ ``` bash
46
46
gz service -s /gui/move_to --reqtype gz.msgs.StringMsg --reptype gz.msgs.Boolean --timeout 2000 --req ' data: "box_model"'
47
47
```
48
48
49
49
Echo camera pose:
50
50
51
- ```
51
+ ``` bash
52
52
gz topic -e -t /gui/camera/pose
53
53
```
54
54
55
- Follow box :
55
+ Echo camera tracking information :
56
56
57
+ ``` bash
58
+ gz topic -e -t /gui/currently_tracked
57
59
```
58
- gz service -s /gui/follow --reqtype gz.msgs.StringMsg --reptype gz.msgs.Boolean --timeout 2000 --req 'data: "box_model"'
60
+
61
+ Follow box from track topic:
62
+
63
+ ``` bash
64
+ gz topic -t /gui/track -m gz.msgs.CameraTrack -p ' track_mode: 2, follow_target: { name: "box_model"}'
59
65
```
60
66
61
- Update follow offset :
67
+ Follow box from track topic :
62
68
69
+ ``` bash
70
+ gz topic -t /gui/track -m gz.msgs.CameraTrack -p ' track_mode: 2, follow_target: "box_model", follow_offset: {x: -1, y: 0, z: 1}'
63
71
```
72
+
73
+ Update follow offset from track topic:
74
+
75
+ ``` bash
76
+ gz topic -t /gui/track -m gz.msgs.CameraTrack -p ' track_mode: 2, follow_target: {name: "box_model"}, follow_offset: {x: -1, y: 0, z: 1}'
77
+ ```
78
+
79
+ Follow box from service (deprecated):
80
+
81
+ ``` bash
82
+ gz service -s /gui/follow --reqtype gz.msgs.StringMsg --reptype gz.msgs.Boolean --timeout 2000 --req ' data: "box_model"'
83
+ ```
84
+
85
+ Update follow offset from follow offset service (deprecated):
86
+
87
+ ``` bash
64
88
gz service -s /gui/follow/offset --reqtype gz.msgs.Vector3d --reptype gz.msgs.Boolean --timeout 2000 --req ' x: 5, y: 5, z: 5'
65
89
```
0 commit comments