question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Publish pose does not work when connected to a ROS2 stack via rosbridge

See original GitHub issue

Hi folks!

I noticed that the tools for publishing poses and points do not work for ROS2. image

The issue seems to be that the header fields in PoseStamped/PoinsStamped differ somewhat between the versions of ROS.

I get this error from rosbridge when I try to publish a pose:

[rosbridge_websocket-2] [ERROR] [1644769470.882365620] [rosbridge_websocket]: [Client 3] [id: publish:/goal_pose:114] publish: Message type geometry_msgs/PoseStamped does not have a field header.seq
[rosbridge_websocket-2] [ERROR] [1644769515.979927426] [rosbridge_websocket]: [Client 3] [id: publish:/clicked_point:125] publish: Message type geometry_msgs/PointStamped does not have a field header.seq

It would be nice to have an option to send ROS2 compatible messages with the tools.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
defunctzombiecommented, Jul 20, 2022

Yes the header message did change between ros1 and ros2.

Fortunately we have a field that panels can use to detect the framework and the 3d panel could use this to publish a message with the correct format for ros1 vs ros2.

@jtbandes @jhurliman I’m moving this issue into a bug since we are displaying the UI to publish to users that are connected via rosbridge. We can either resolve this by not displaying the UI when we can’t support the framework or fix this to publish the correct format message. Right now the user experience is one where you see the feature and when you go to use it, it fails.

1reaction
jtbandescommented, Apr 18, 2022

One gotcha here is that if I open a Raw Message panel on the topic I should be able to see the message getting published. I think thats an important debugging property we should try to preserve.

I’m not sure this is a real problem – I think messages published from Studio today don’t show up in Raw Messages (or any panel) unless they make a roundtrip through the player. In that case you would be seeing the final published message in the format vended by the player.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ROS 2 Native: Publishing support · Issue #1661 · foxglove/studio
This feature request is for the ROS 2 native connection to support ... Publish pose does not work when connected to a ROS2...
Read more >
Native ROS 1 and ROS 2 - Docs - Foxglove Studio
Connect directly to your running ROS stack via a native TCP (Transmission Control Protocol) connection to access your ROS master and/or nodes directly....
Read more >
ROS & ROS2 Bridge — Omniverse Robotics documentation
The ROS Bridge Extension enables publishing and subscribing of several rostopics and rosservices that are commonly needed for robotic simulation. This extension ...
Read more >
ROS web tutorial part 1 - rosbridge server and roslibjs
Good luck! Mateusz Sadowski • 2 years ago. Many thanks for reporting the problem. I've updated the post to show how ...
Read more >
Build a web page that listens to your ROS 2 stack using a ...
This subreddit is for discussions around the Robot Operating System, ... page that listens to your ROS 2 stack using a Rosbridge connection....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found