-
Notifications
You must be signed in to change notification settings - Fork 22
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
Ros_bridge not publishing ROS messages #3
Comments
In a pivate mail with @micahpearlman Micah suggested the following:
This almost works. Laser scans and poses etc works well. However, images from cameras do not encode correctly and appears blue in Rviz. Does anyone know how to fix this? |
@EdvardGrodem Regarding images/cameras not showing up I've opened up a new issue: #4 |
Hi @EdvardGrodem, I am having a similar issue as you described above. The difference is that I could not see any topics published from Unity after running "rostopic list". I have rosbridge_server 0.11.13 installed with ROS Noetic in my Ubuntu 20.04 machine. After reading the issue here, I downloaded 0.11.10 and catkin_make it in a local workspace. After running "roslaunch rosbridge_server rosbridge_tcp.launch bson_only_mode:=true" and "rostopic list" on two consoles, I still could not see any topics from Unity. Could you let me know what you did to make this work, please? Thanks a lot. |
Hi, @nsrj. The Recomended System specifies ROS Melodic, however I'm not familiar enough with ROS to be able to tell if Noetic could work. |
@nsrj you may want to checkout this pull request for ROS Bridge that hasn't been incorporated: RobotWebTools/rosbridge_suite#545 |
@micahpearlman, thank you for your follow-up. I downloaded and compiled this version and it is now working on my machine. The issue is the rosbridge. Thanks a lot for pointing it out! |
@EdvardGrodem, thank you for your reply. After switching to a different version of rosbridge as mentioned above, all the topics are visible now. Thanks! |
Hello, im having the same problem, i tried downloading and compiling this ROSBridge version, but when i run:
i cant see any topics from Unity, i really dont know that else to try, i can perfectly see the topics from Unity being published when i use the docker catkin workspace, but when i try to see them from my local catkin workscape using rostopic list, i cant see them and when i check the Unity console, it reports that connection to ros bridge is established. Im running ROS Noetic on a Ubuntu 20.04 machine. |
@cramirez98 this is the ZeroSim Docker setup for ROS Bridge:
See: https://github.com/fsstudio-team/zerosim_docker/blob/master/docker/base/Dockerfile We have not tried Noetic yet though I hear some users have been successful. Very much recommend using a Docker for ROS if at all possible as setting up ROS is a bit of a nightmare at times. |
@cramirez98 any luck? If so, do you mind sharing how you were able to setup a non-Docker system for ROS Noetic? |
No, i couldn't get it to work |
@cramirez98 perhaps you can try running ROS Bridge in the ZeroSim Docker and run other ROS nodes on your host OS by juggling the ROS master environment settings: https://answers.ros.org/question/272065/specification-of-ros_master_uri-and-ros_hostname/ |
I have managed to set up the ROS Bridge mentioned here on my system (ROS Noetic, Ubuntu 20.04 LTS), and the topics from Unity were visible. When I tried to set up the default rosbridge_suite package from apt, the server used to form a connection, but there were no topics from Unity being transferred. So the fix mentioned by @micahpearlman indeed does work on Noetic as well. @cramirez98 I know this seems trivial, but were you able to confirm that the ROS path for the |
I found the easy way to solve this issue, but it only works on a linux host. Add the Proof of fixRun the docker imagedocker run -it --rm \
--network host \
--name my_zerosim_vnc_docker \
zerodog/zerosim_ros_vnc:latest \
roslaunch zero_sim_ros basic_unity_editor.launch rosbridge 0.11.13 (ROS Noetic, Ubuntu 20.04 LTS)➜ catkin_ws roswtf
Loaded plugin tf.tfwtf
No package or stack in the current directory
================================================================================
Static checks summary:
No errors or warnings
================================================================================
Beginning tests of your ROS graph. These may take a while...
analyzing graph...
... done analyzing graph
running graph rules...
... done running graph rules
running tf checks, this will take a second...
... tf checks complete
Online checks summary:
Found 1 warning(s).
Warnings are things that may be just fine, but are sometimes at fault
WARNING No tf messages
➜ catkin_ws rosversion rosbridge_server
0.11.13
➜ catkin_ws rostopic echo /client_count
data: 0
--- |
I've followed the tutorial on Setting up a new Unity Project, but want to set up the a new catkin_ws independent of the provided docker space. I'm quite new to ROS so this might be obvious.
I've tried to run
roslaunch rosbridge_server rosbridge_tcp.launch bson_only_mode:=true
And then press play in Unity.
The console in Unity then reports that connection to ros bridge is established, and
rostopic list
confirms that the topics have been published. However, when opening up rviz to view the sensors, none of them receive any messages.Is it possible to get access files in the docker container so that it is easier to set up a workspace outside of docker?
Does anyone know how to solve this issue?
The text was updated successfully, but these errors were encountered: