Maritime-Robotics-Student-Society / sailing-robot

Southampton sailing robot
http://www.sotonsailrobot.org
Other
88 stars 46 forks source link

Can't use rviz with maps on the project laptop #123

Open takluyver opened 8 years ago

takluyver commented 8 years ago

Rviz complained the the aerial maps plugin couldn't be loaded. I guess the package needs to be installed on that laptop.

Nanoseb commented 8 years ago

Yes you just have to follow the wiki page: https://github.com/Maritime-Robotics-Student-Society/sailing-robot/wiki/Rviz:-2D-plot-of-our-boat

takluyver commented 8 years ago

Thank you! On Wednesday, let's do that on the project laptop, check that it's working, and then close this.

Nanoseb commented 8 years ago

Also since you probably don't have a data connection during lake test, you should run a simulation with the lake waypoints beforehand for rviz to download map tiles. Then you'll be able to use it offline (you can always backup the folder ~/sailing-robot/src/rviz_satellite/mapscache somewhere else in case the cache gets deleted).

takluyver commented 8 years ago

I have followed the instructions from the wiki and got the plugin loading, but it doesn't show anything. There's a warning saying "No map received". But I'm also not sure if I'm using ROS right, because all my rostopic echo commands aren't working against the rosbags.

Nanoseb commented 8 years ago

Is rviz working correctly during simulations ? And for the map to show you need an internet connection so if you are connected to the pi maybe it is not possible (you'll need to run a simulation beforehand to dl maps to have them in cache)

takluyver commented 8 years ago

I was trying to replay a ros bag file, and I was connected to the internet. I'm not there next week, but hopefully someone else can test rviz with the simulator on that laptop.

Nanoseb commented 8 years ago

I have never tested rosbag playback with rviz, I'll give it a try.

EDIT: I have just tested that on my laptop, and it is working great, the problem is probably with the ros installation, in the end the node debugging_2D_plot only needs the /position topic.