Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client advertisements and message publishing #66

Merged
merged 15 commits into from
Nov 25, 2022
Merged

Conversation

jhurliman
Copy link
Contributor

Public-Facing Changes

  • WebSocket clients can advertise topics and publish messages to their advertised topics

Description
This supports the clientPublish capability, including advertising/unadvertising/publishing for ROS 1 and ROS 2.

@jhurliman jhurliman marked this pull request as draft November 22, 2022 23:06
@achim-k
Copy link
Collaborator

achim-k commented Nov 24, 2022

There is still something wrong with ros2 publishing.

I tested it with foxglove/ws-protocol#284 and ros2 topic echo /chatter repeatedly gives the following output:

1669316300.717228 [0]     recvUC: malformed packet received from vendor 1.16 state parse:data <52545053 02010110 011022a7 0df507c2 49c53cbc 09010800 ccbe7f63 cadb8bb7 @0x20 15051400 00001000 00000000 032c0000 00000000 13000000 07011c00 00000000> (note: maybe partially bswap'd) {{15,5,20},0,16,0,2c03,19}

Edit: This got fixed by explicitly setting the buffer length for the outgoing serialized message (4ff350d)

@achim-k achim-k changed the title [WIP] Client advertisements and message publishing Client advertisements and message publishing Nov 25, 2022
@achim-k achim-k marked this pull request as ready for review November 25, 2022 20:57
@jhurliman jhurliman merged commit 9be5c14 into main Nov 25, 2022
@jhurliman jhurliman deleted the jhurliman/publishing branch November 25, 2022 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants