Skip to content

Forward port 63 incremental load vrt - #66

Draft
Ryanf55 wants to merge 2 commits into
ethz-asl:ros2from
Ryanf55:forward-port-63-incremental-load-vrt
Draft

Forward port 63 incremental load vrt#66
Ryanf55 wants to merge 2 commits into
ethz-asl:ros2from
Ryanf55:forward-port-63-incremental-load-vrt

Conversation

@Ryanf55

@Ryanf55 Ryanf55 commented Nov 30, 2024

Copy link
Copy Markdown
Collaborator

Purpose

Forward port #63 which demonstrates incrementally loading terrain data from a VRT file, reprojecting it, and loading it onto a single RVIZ map

TODO

  • Figure out rviz configuration errors:
image

Perhaps we need to declare a dependency on mav_planning_rviz?

  • Figure out why it crashes while running:
$ ros2 launch grid_map_geo run_terrain_loader.launch.xml visualization:=false
[INFO] [launch]: All log files can be found below /home/ryan/.ros/log/2024-11-30-16-31-49-198699-ryan-thinkpad-51242
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [terrain_loader-1]: process started with pid [51249]
[terrain_loader-1] Loading VRT Map:
[terrain_loader-1]   - map_center_wgs84:46.8142 9.83942       0
[terrain_loader-1] 
[terrain_loader-1] Loading GeoTIFF file for gridmap
[terrain_loader-1] 
[terrain_loader-1] Wkt ProjectionRef: GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AXIS["Latitude",NORTH],AXIS["Longitude",EAST],AUTHORITY["EPSG","4326"]]
[terrain_loader-1] Width: 1296001 Height: 604801 Resolution: 0.000277778
[terrain_loader-1] length: 0.499722 0.499722
[terrain_loader-1] terrain_loader: /usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:273: void Eigen::PlainObjectBase<Derived>::resize(Eigen::Index, Eigen::Index) [with Derived = Eigen::Matrix<double, 3, 1>; Eigen::Index = long int]: Assertion `(!(RowsAtCompileTime!=Dynamic) || (rows==RowsAtCompileTime)) && (!(ColsAtCompileTime!=Dynamic) || (cols==ColsAtCompileTime)) && (!(RowsAtCompileTime==Dynamic && MaxRowsAtCompileTime!=Dynamic) || (rows<=MaxRowsAtCompileTime)) && (!(ColsAtCompileTime==Dynamic && MaxColsAtCompileTime!=Dynamic) || (cols<=MaxColsAtCompileTime)) && rows>=0 && cols>=0 && "Invalid sizes when resizing a matrix or array."' failed.
[ERROR] [terrain_loader-1]: process has died [pid 51249, exit code -6, cmd '/home/ryan/Dev/grid_map_ws/install/grid_map_geo/lib/grid_map_geo/terrain_loader --ros-args -r __node:=terrain_loader --params-file /tmp/launch_params_e0odo1x8'].

* Add vrt parsing node
* Load position and extent from VRT server
* Add terrain loader node
* Use gdal transforms
* Remove geoconversion library
* Update readme
@Ryanf55
Ryanf55 requested a review from Jaeyoung-Lim November 30, 2024 23:31
* Needs a node instance to get the time
* Move rviz config to the rviz directory
* Use new grid map shared pointer API for converting to ROS messages
* Install new node in the ament index

Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
@Ryanf55
Ryanf55 force-pushed the forward-port-63-incremental-load-vrt branch from 46fd31d to 888c8d3 Compare November 30, 2024 23:34

@Jaeyoung-Lim Jaeyoung-Lim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

We should actually remove the mav_planning_rviz from the rviz config file, since it is only for terrain_navigation

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

Successfully merging this pull request may close these issues.

2 participants