dfki-ric / ugv_nav4d

A 4D (X,Y,Z, Theta) Planner for unmaned ground vehicles (UGVs).
https://dfki-ric.github.io/ugv_nav4d/
BSD 3-Clause "New" or "Revised" License
7 stars 2 forks source link

Example Case #16

Closed haider8645 closed 3 days ago

haider8645 commented 1 month ago

Hello @OlgerSiebinga,

I added an example case in the documentation. It shows how to use ugv_nav4d in ros2 within a test environment. The repositories for the test case are not yet published. The example should give a good starting point for users.

I will let you know after publishing the ros2 wrapper so that you can test it.

haider8645 commented 1 month ago

@soraxas FYI

haider8645 commented 3 weeks ago

The repositories are published.

https://github.com/dfki-ric/ugv_nav4d_ros2 https://github.com/dfki-ric/ros2_humble_gazebo_sim

soraxas commented 3 weeks ago

Nice!

OlgerSiebinga commented 2 weeks ago

HI @haider8645,

I tried to run the example case in ros on a fresh installation today, but I got stuck at step 5 of the readme instructions: the ros2 build. It seems there is a dependency missing in the instruction because I get the following error message:

$ colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
Starting >>> lidarslam_msgs
Starting >>> ndt_omp_ros2
Starting >>> ugv_nav4d_ros2
Finished <<< ndt_omp_ros2 [0.25s]                                       
--- stderr: ugv_nav4d_ros2
CMake Error at /usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:603 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:825 (_pkg_check_modules_internal)
  CMakeLists.txt:19 (pkg_check_modules)

---
Failed   <<< ugv_nav4d_ros2 [0.25s, exited with code 1]
Aborted  <<< lidarslam_msgs [0.34s]                                

Summary: 1 package finished [0.61s]
  1 package failed: ugv_nav4d_ros2
  1 package aborted: lidarslam_msgs
  1 package had stderr output: ugv_nav4d_ros2
  3 packages not processed
OlgerSiebinga commented 2 weeks ago

turns out I had to source the env of the original ugv_nav4d installation to make it visible to Ros. This is mentioned in the wrapper readme but not in the example instructions. Might be nice to add it there.

OlgerSiebinga commented 2 weeks ago

I ran into another minor thing, I had to manually install ros-humble-ros-ign to get the launch script to run. After that, I managed to get the launch script to run, but returns the following error:

[Err] [Server.cc:139] Error Code 13: [/sdf/world[@name="gz"]/include[0]/uri:/home/localadmin/ros2_ws/ros2_humble_gazebo_sim/simulation/models/cave_circuit.sdf:L16]: Msg: Unable to find uri[model://COSTAR_HUSKY_SENSOR_CONFIG_1]

Looks like I'm missing a config file. Or is this something I can fix on my side?

haider8645 commented 2 weeks ago

Do you get the same error even after sourcing the following:

export IGN_GAZEBO_RESOURCE_PATH=/home/localadmin/ros2_ws/ros2_humble_gazebo_sim/resource:$IGN_GAZEBO_RESOURCE_PATH
OlgerSiebinga commented 2 weeks ago

thanks, I forgot that one! The list of sources and exports to run the launch command is quite long. It might be nice to provide an extensive list because now I had to trace it back from between the build commands in the example (I ran all the builds yesterday and just wanted to launch the example today). Anyway, just a suggestion.

haider8645 commented 2 weeks ago

Yes, I agree with you. It would be a challenge for anyone to go through all the commands and text. Hmm, I will find a way to make it user friendly. Thanks for the heads up!

haider8645 commented 3 days ago

I have updated the readme with the hint to source ugv_nav4d before building the ros2 workspace. I will close this for now so that a starting example case is available for users and later update the readme to improve overall usability