Skip to content

Commit 6aff3fd

Browse files
committed
docs(wiki): restore <img> tag placeholder in roslibjs tutorial
1 parent 0fee400 commit 6aff3fd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

wiki/tools/__all_subsections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1980,7 +1980,7 @@ You can do more advanced stuff such as subscribing to images, Rviz visualization
19801980
To visualize and update an image stream live within your web app, first you need a placeholder in HTML for your image. Define it as follows within the `body` tag with an unique ID to update it later via JavaScript.
19811981
19821982
```
1983-
1983+
<img id="my_image" style='height: 100%; width: 100%; object-fit: contain' src="/assets/images/placeholder.png">
19841984
```
19851985
19861986
Now, you can create a topic handler and subscribe to your image from ROS. Note that, if you want to integrate image streams with `roslibjs`, the ROS socket bridge expects images in compressed format. See this section [here](https://roboticsknowledgebase.com/wiki/tools/stream-rviz/compressing-image-streams) for more details on setting up image compression for your topics.

wiki/tools/roslibjs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ You can do more advanced stuff such as subscribing to images, Rviz visualization
145145
To visualize and update an image stream live within your web app, first you need a placeholder in HTML for your image. Define it as follows within the `body` tag with an unique ID to update it later via JavaScript.
146146

147147
```
148+
<img id="my_image" style='height: 100%; width: 100%; object-fit: contain' src="/assets/images/placeholder.png">
148149
```
149150

150151
Now, you can create a topic handler and subscribe to your image from ROS. Note that, if you want to integrate image streams with `roslibjs`, the ROS socket bridge expects images in compressed format. See this section [here](https://roboticsknowledgebase.com/wiki/tools/stream-rviz/compressing-image-streams) for more details on setting up image compression for your topics.

0 commit comments

Comments
 (0)