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

Rosbridge connected but no published topics visible #62

Closed
phil333 opened this issue Jan 18, 2019 · 6 comments
Closed

Rosbridge connected but no published topics visible #62

phil333 opened this issue Jan 18, 2019 · 6 comments

Comments

@phil333
Copy link

phil333 commented Jan 18, 2019

when launching the rosbridge_server:
roslaunch rosbridge_server rosbridge_tcp.launch bson_only_mode:=True

I get the confirmation that it connected:
[INFO] [1547805756.197721]: Rosbridge TCP server started on port 9090
[INFO] [1547807016.693514]: [Client 0] connected. 1 client total.

The rostopic list does not show anything
/client_count
/rosout
/rosout_agg

The rosbridge_server lists the following versions:

  • /rosdistro: melodic
  • /rosversion: 1.14.3
    Running on ubuntu 18.04

I already tried this:
RobotWebTools/rosbridge_suite#353

Also running Unreal in a separate Windows machine, resulted in the same problem

The C++ code in unreal is a copy paste of the example in the readme, copied into:
void AMyActor::BeginPlay()

I had the test example working before, but i have run some updates in the meantime. So it is possible that an updated dependency has caused this.

I also tried using the blueprint setup, but nothing is published. I also tried the subscribe method, but for some reason, my subscribe blueprint does not give me the same options displayed in the readme file.

@phil333
Copy link
Author

phil333 commented Jan 21, 2019

I have narrowed manage to narrow down the problem to the rosbridge_server on this machine.

When trying to run everything on another machine (also ubuntu18 and ROS-melodic), everything worked. I then tested both rosbridge_server and unreal with either machine over tcp/ip. rosbridge_server still reports a connection with Unreal running on a separate machine, but there is no visible topic published on the rostopic list.

Any suggestions on how to debug this or maybe some dependency version suggestions?

@Sanic
Copy link
Contributor

Sanic commented Jan 21, 2019

Have you every tried subscribing to a topic to see if that works?
Are you also declaring the topic properly? #32

@phil333
Copy link
Author

phil333 commented Jan 21, 2019

I tried subscribing, without any result. Still need to try this with the second machine setup.
The topic declaration works flawlessly when connecting this Unreal project to a rosbridge_server that runs on a separate machine.

@phil333
Copy link
Author

phil333 commented Jan 21, 2019

Found the issue. I recently installed Anaconda for a separate project. This seems to have changed my python environment. While i dont know which specific library caused the issue, removing anaconda from the .bashrc file solved the problem.

@phil333 phil333 closed this as completed Jan 21, 2019
@MahyarBayran
Copy link

@phil333 so which python path worked for you? Right now, mine is using the one integrated in ros noetic package.

Capture

@phil333
Copy link
Author

phil333 commented Apr 21, 2021

@MahyarBayran as mentioned, my issue was just to remove the added paths from anaconda which ruined things in the first place. I was also using melodic, so nothing with python3. I have since moved on to using Airsim instead. Its not perfect either, but easier to set up. I needed a stereo camera configuration, and i didn't know enough about unreal to modify the existing code samples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants