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.

does ros2-web-bridge support to pub or sub msgs created by user ?

See original GitHub issue

I want to use ros2-web-bridge to transport msgs created by myself, but a error occurs as follow: ros2-web-bridge:Bridge Exception caught in Bridge.executeCommand(): Error: The message required does not exist: entity_msgs, msg, EntityMsg @minggangw

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
minggangwcommented, Sep 14, 2018

Yes, it supports. The process of generating the messages from user defined .msg or .srv is handled by rclnodejs, not the ros2-web-bridge. To achieve this, please add the path of your .msg files to the AMENT_PREFIX_PATH variable.

If you add these .msg files after the installation of ros2-web-bridge, you have to manually reinstall the rclnodejs which will trigger the generation again. (actually, the rclnodejs has function which can generate the messages compulsively, but the bridge doesn’t make use of it)

0reactions
rukiecommented, Apr 30, 2019

Thank you for all the help, sorry this isn’t directly related to ros2-web-bridge anymore. I’ve done the following:

cd ~/ros2_ws
colcon build --symlink-install --merge-install

with no issues, followed by

source ~/ros2_ws/install/local_setup.bash

and I get

not found: /home/rukie/ros2_ws/install/share/$packagehere/local_setup.sh
not found: /home/rukie/ros2_ws/install/share/$packagehere/local_setup.bash

I guess I’m still not sure what merge-install does exactly.

After reading about overlays I’m pretty confident I’d want to source local_setup.bash for ROS, and setup.bash for my ackermann message.

I’m a little stuck here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ros2 pub/sub custom message through ros2-web-bridge to ...
I have created the custom message interface on ros2. // this is client side web app subscribe method var example = new ROSLIB.Topic({ ......
Read more >
Is there any package in ros2 that like package ... - ROS Answers
recently, we want to upgrade our ros1 project into ros2, but we have a frontend package that using javascript api to call ros...
Read more >
Using Rosbridge with ROS 2 - Foxglove
It exposes the pub/sub functionality of ROS, so that you can publish and subscribe to topics from your web page. Create a web...
Read more >
ros2-web-bridge - npm
The bridge can process commands through JSON tuneled over WebSockets. Supported Clients. A client is a program that communicates with ros2-web- ...
Read more >
Awesome Robot Operating System 2 (ROS 2) - GitHub Pages
The Robot Operating System Version 2.0 is awesome! ... ros2_moving_object - Addressing moving objects based on messages generated by Object Analytics ...
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