Skip to content

Commit 1a04fbb

Browse files
Enhanced tracking camera and user visualization experience (#619)
Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com> Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
1 parent b4a0f36 commit 1a04fbb

File tree

10 files changed

+820
-73
lines changed

10 files changed

+820
-73
lines changed

examples/standalone/scene_provider/README.md

+32-8
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugin to update the scene using Gazebo Transport.
99

1010
## Build
1111

12-
```
12+
```bash
1313
cd examples/standalone/scene_provider
1414
mkdir build
1515
cd build
@@ -21,14 +21,14 @@ make
2121

2222
In one terminal, start the scene provider:
2323

24-
```
24+
```bash
2525
cd examples/standalone/scene_provider/build
2626
./scene_provider
2727
```
2828

2929
On another terminal, start the example config:
3030

31-
```
31+
```bash
3232
gz gui -c examples/config/scene3d.config
3333
```
3434

@@ -42,24 +42,48 @@ Some commands to test camera tracking with this demo:
4242

4343
Move to box:
4444

45-
```
45+
```bash
4646
gz service -s /gui/move_to --reqtype gz.msgs.StringMsg --reptype gz.msgs.Boolean --timeout 2000 --req 'data: "box_model"'
4747
```
4848

4949
Echo camera pose:
5050

51-
```
51+
```bash
5252
gz topic -e -t /gui/camera/pose
5353
```
5454

55-
Follow box:
55+
Echo camera tracking information:
5656

57+
```bash
58+
gz topic -e -t /gui/currently_tracked
5759
```
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"}'
5965
```
6066

61-
Update follow offset:
67+
Follow box from track topic:
6268

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}'
6371
```
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
6488
gz service -s /gui/follow/offset --reqtype gz.msgs.Vector3d --reptype gz.msgs.Boolean --timeout 2000 --req 'x: 5, y: 5, z: 5'
6589
```

src/plugins/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ endfunction()
116116
# Plugins
117117
add_subdirectory(camera_fps)
118118
add_subdirectory(camera_tracking)
119+
add_subdirectory(camera_tracking_config)
119120
add_subdirectory(grid_config)
120121
add_subdirectory(image_display)
121122
add_subdirectory(interactive_view_control)

0 commit comments

Comments
 (0)