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

I can't see the map in VIZ tab even ROS shows me the phone is suscribed at topic map #38

Closed
edrsd opened this issue Feb 14, 2021 · 8 comments

Comments

@edrsd
Copy link

edrsd commented Feb 14, 2021

Hello, I'm newbie in ROS and I'm doing this tutorial "https://github.com/samialperen/oko_slam/blob/master/doc/hector_slam_tutorial.md"
about SLAM. I have connected the phone sussesfully to Master and I can move the robot with Joystick but in Viz tab doesn't show the map. I have wroten the rostopic info map command and shows me the phone suscribed to the topic map. what could be going wrong? Thanks in advance.

@NRottmann
Copy link

Probably you did not set the network parameter correctly. Please check out https://github.com/ROS-Mobile/ROS-Mobile-Android/wiki/FAQ on how to set your ROS network parameters correctly. Please then tell us if that solved your problem.

@edrsd
Copy link
Author

edrsd commented Feb 17, 2021

thanks a lot you were right. I used this "https://answers.ros.org/question/206876/how-often-do-i-need-to-source-setupbash/"
to wrote in .bashrc file and add this two lines:
export ROS_IP="MY_PC_IP"
export ROS_MASTER_URI=http://"MY_PC_IP":11311

I have another question: Is there a way to show the robot's position on the map? because for now I can only see how the map is created without seeing a robot reference. Again thanks a lot NRottmann.

@NRottmann
Copy link

You are welcome, The feature of showing the robots pose will be added within the next month by my colleague.

@jack162
Copy link

jack162 commented Jul 31, 2021

Hello, could you tell me how to set the network parameter? i know how to set in pc, but i don't how where is .bashrc file in Android devices. Thanks a lot.

@nicostudt
Copy link
Contributor

There is none. You only have to set the ROS variables on the master Pc and connect to it via the same network. Additionally try to ping your phone/tablet - if this is successful you should be good to go.

@jack162
Copy link

jack162 commented Aug 2, 2021

thank you!
i set the ROS_IP (android device ip) in master pc,than it work!
but the joystick still can't connect to /cmd_vel

@NRottmann
Copy link

Does the joystick not connect or does it not send any data. In the first case, it might be still an issue with the network parameter. In the second case you might have some issues with existing firewalls or network permissions.

@jack162
Copy link

jack162 commented Aug 2, 2021

oh it is topic name wrong. Thanks for your reply. i am appricate.

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

4 participants