Publish¶
- class foxglove.layouts.PublishPanel¶
Publish messages to the data source (live connections only).
For more information, see the documentation.
Example¶import foxglove.layouts as fl layout = fl.Layout( content=fl.PublishPanel( config=fl.PublishConfig( topic_name="/cmd_vel", datatype="geometry_msgs/Twist", button_text="Publish", value='{"linear": {"x": 0, "y": 0, "z": 0}, "angular": {"x": 0, "y": 0, "z": 0}}', ), ), )
-
config:
PublishConfig¶
-
title:
str|None= None¶ The title of the panel.
-
config:
- class foxglove.layouts.PublishConfig¶
Configuration for the Publish panel.
-
advanced_view:
bool|None= None¶ When enabled, editing the message is allowed and the content is displayed. When disabled, only the button is visible.
-
button_color:
str|None= None¶ Color of the button
-
button_text:
str|None= None¶ Label for the button
-
button_tooltip:
str|None= None¶ Tooltip for the button
-
datatype:
str|None= None¶ Message schema to publish
-
topic_name:
str|None= None¶ Topic to publish to
-
value:
str|None= None¶ JSON blob to publish
-
advanced_view: