ros-geographic-info / open_street_map

Experimental packages for ROS access to Open Street Map information
http://ros.org/wiki/open_street_map
79 stars 52 forks source link

ROS noetic issue #25

Open brianr1234 opened 3 years ago

brianr1234 commented 3 years ago

When running the tutorial listed on http://wiki.ros.org/osm_cartography (section 3) using ROS noetic I get the following error message. Was there as issue with the port to noetic?

Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt

SUMMARY
========

PARAMETERS
 * /rosdistro: noetic
 * /rosversion: 1.16.0
 * /viz_osm/map_url: package://osm_car...

NODES
  /
    osm_server (osm_cartography/osm_server)
    viz_osm (osm_cartography/viz_osm)

ROS_MASTER_URI=http://localhost:11311

process[osm_server-1]: started with pid [495782]
process[viz_osm-2]: started with pid [495783]
  File "/opt/ros/noetic/lib/osm_cartography/viz_osm", line 107
    lambda (f): geodesy.props.match(f, road_props),
           ^
SyntaxError: invalid syntax
laidovaldvee commented 2 years ago

in viz_osm file remove () from rows 107, 112, 117 and 122. Also change row 174 like this: for feature in filter(predicate, self.map.features): And finaly in file osm_server remove change in row 84 "/map" to "map"

YXGuan commented 2 years ago

@laidovaldvee @brianr1234

Hi guys,

I run the below commands but nothing appears in RVIZ. roscore roslaunch osm_cartography viz_osm.launch url:=package://osm_cartography/tests/prc.osm rosrun tf static_transform_publisher 622150 3362350 0 0 0 0 1 map local_map 100 rviz

image image

Your help would be much appreciated.

bmagyar commented 2 years ago

@laidovaldvee It'd be much appreciated if you could provide a Pull Request with these changes so that we can put out a fixed release as opposed to ghetto fixes.

siddarth09 commented 1 year ago

@laidovaldvee @brianr1234

Hi guys,

I run the below commands but nothing appears in RVIZ. roscore roslaunch osm_cartography viz_osm.launch url:=package://osm_cartography/tests/prc.osm rosrun tf static_transform_publisher 622150 3362350 0 0 0 0 1 map local_map 100 rviz

image image

Your help would be much appreciated.

Added visualization marker array and i guess you should be able to view your map, Hope that helps