nobleo / rviz_satellite

Display internet satellite imagery in RViz
Apache License 2.0
569 stars 238 forks source link

Bug in the demo ? #67

Closed tomlogan501 closed 4 years ago

tomlogan501 commented 4 years ago

Hi, I try to launch the demo.launch and this is what happen :

SUMMARY

PARAMETERS

  • /rosdistro: melodic
  • /rosversion: 1.14.3 NODES / fake_gps_fix (rostopic/rostopic) rviz (rviz/rviz) static_tf_fake (tf2_ros/static_transform_publisher)

ROS_MASTER_URI=http://localhost:11311

process[fake_gps_fix-1]: started with pid [27967] process[rviz-2]: started with pid [27968] process[static_tf_fake-3]: started with pid [27969] /opt/ros/melodic/lib/python2.7/dist-packages/rostopic/init.py:1826: YAMLLoadWarning: calling > yavml.load_all() without Loader=... is deprecated, as the default Loader is unsafe. Please read > https://msg.pyyaml.org/load for full details. for d in data: terminate called after throwing an instance of 'std::invalid_argument' what(): The number of blocks has to be positive

I'm using only source of ROS because I'm on 19.10 Ubuntu.

How can I fix this ?

iampy1 commented 4 years ago

I have the same issue. Please provide solution.

SUMMARY

PARAMETERS

NODES / fake_gps_fix (rostopic/rostopic) rviz (rviz/rviz) static_tf_fake (tf2_ros/static_transform_publisher)

auto-starting new master process[master]: started with pid [7116] ROS_MASTER_URI=http://localhost:11311

setting /run_id to d0c54dfe-53ce-11ea-b968-0800277151de process[rosout-1]: started with pid [7131] started core service [/rosout] process[fake_gps_fix-2]: started with pid [7134] process[rviz-3]: started with pid [7135] process[static_tf_fake-4]: started with pid [7148] terminate called after throwing an instance of 'std::invalid_argument' what(): The number of blocks has to be positive

iampy1 commented 4 years ago

Hello!

I found the solution although could not quite figure out why the error appears the way it does.

So, in file 'demo.rviz', under 'Visualization Manager -> Blocks' change the value from 3 to 8 (this the maximum value for the block field). Now run the 'demo.launch' again. It works! However, you only see the position in the map. Not the 'satellite' version of the map.

PS: Once the rviz opens up, on the left side you can change the value of 'Blocks' to 3 again if you want.

Cheers! :)

PS: Turns out that, out of three tile servers mentioned in the 'rviz_satellite' repo description, OpenStreetMap does not support satellite version of the map but only map version of the map (As far as I know). The other two servers need some kind of Token. I am not sure how to obtain the token.

schra commented 4 years ago

Thanks for reporting this issue, demo.launch works again :)