RobotWebTools / rosbridge_suite

Server Implementations of the rosbridge v2 Protocol
https://robotwebtools.github.io
BSD 3-Clause "New" or "Revised" License
915 stars 518 forks source link

websocket.launch doesn't work... #565

Closed arizk2605 closed 2 years ago

arizk2605 commented 3 years ago

Hi everyone, I'm currently working on a streaming server that publishes health data from a wristband (Empatica E4) to a TCP client (More information on it : http://developer.empatica.com/windows-streaming-server.html My goal is to publish those real-time data messages in a ROS topic so that i can save them into rosbags afterwards.

I tried using the rosbridge_server package included in rosbridge_suite but the launch files didn't work because of some random errors related to Msg file that i can't seem to find a solution for .

Do you have any idea how i could achieve that ?

abhishek47kashyap commented 3 years ago

launch files didn't work because of some random errors related to Msg file

Can you post the errors?

arizk2605 commented 3 years ago

Hi abishek, Here is a screenshot of the launch file (I updated the host and port accordingly to the server address and port of the E4 streaming server which are respectively 127.0.0.1 and 28000) I am running this TCP server from a windows computer whereas the launch file is executed from a raspberry pi that I command by ssh using putty. Both are connected to the same network which is my house's. image

And I get this error when launching... image

My goal would be to the publish the data published to the TCP clients from the Empatica E4 server to a ROS topic so that I can save it into rosbags afterwards

abhishek47kashyap commented 3 years ago

Hmm No module name rosauth.srv kinda rings a bell, I think I had to install rospy-tutorials and roscpp-tutorials: sudo apt-get install -y ros-$ROS_DISTRO-rospy-tutorials ros-$ROS_DISTRO-roscpp-tutorials

arizk2605 commented 3 years ago

I tried installing it but it failed : image

Also, I think the main problem here is the "ImportError: No module named msg"

arizk2605 commented 3 years ago

Got any clue ?

abhishek47kashyap commented 3 years ago

Just noticed, the title refers to websocket.launch but screenshot of the launch file you provided is that of _rosbridgetcp.launch .. out of the 3 launch files which one do you want?

After a proper installation of rosbridge, roslaunch rosbridge_server rosbridge_websocket.launch should work!

arizk2605 commented 3 years ago

I tested two of them and I got the same errors for both.. Knowing that the streaming server publishes data to TCP clients, I think rosbridge_tcp is the most suitable. I followed every step of the tutorial though..

arizk2605 commented 3 years ago

I created another issue, if you can check it please : https://github.com/RobotWebTools/rosbridge_suite/issues/566

github-actions[bot] commented 2 years ago

This issue has been marked as stale because there has been no activity in the past 6 months. Please add a comment to keep it open.