tu-darmstadt-ros-pkg / hector_navigation

hector_navigation provides packages related to navigation of unmanned vehicles in USAR environments.
125 stars 90 forks source link

timeout issue #23

Closed sinadunk23 closed 3 years ago

sinadunk23 commented 4 years ago

Hello, i am trying to use the hector navigation package for exploration of unknown map for the hector_quadrotor package. while trying to run the hector_exploration_node i get the following error:

[ERROR] [1582991686.126575728, 1172.588000000]: Do not call canTransform or lookupTransform with a timeout unless you are using another thread for populating data. Without a dedicated thread it will always timeout. If you have a seperate thread servicing tf messages, call setUsingDedicatedThread(true) on your Buffer instance.

can you help me fix it? and can you please assist me in properly running the nodes or launch files needed for autonomous exploration in the right order.

Savanth123 commented 4 years ago

Hi @sinadunk23 ,I am also facing same issue while running the hector_exploration_node.Have you resolved the problem or else it still persists Thanking you -savanth

sinadunk23 commented 4 years ago

Hello, No we eventually used a combination of other packages to perform exploration. My thesis will be completed in a few months, and I will upload all of the codes and files on my Github. Best regards. Sina

On Thu, Jul 2, 2020 at 11:02 AM Savanth123 notifications@github.com wrote:

Hi @sinadunk23 https://github.com/sinadunk23 ,I am also facing same issue while running the hector_exploration_node.Have you resolved the problem or else it still persists Thanking you -savanth

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tu-darmstadt-ros-pkg/hector_navigation/issues/23#issuecomment-652812013, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALNYY3S2Q5VWZBGAYWOJVSLRZQSW7ANCNFSM4K62EWNA .

jjbecomespheh commented 3 years ago

Hi did anyone solved this problem?

Silviis commented 3 years ago

Hi! I'm facing the same problem. Setting the buffer_.setUsingDedicatedThread(true); helps but then I get following warning message and situation is pretty much same.

Warning: Invalid argument "/map" passed to canTransform argument target_frame in tf2 frame_ids cannot start with a '/' like: at line 134 in /tmp/binarydeb/ros-melodic-tf2-0.6.5/src/buffer_core.cpp

Might it be problem with tf2 compatibility?

robbiedood commented 3 years ago

We got the same issue as well. Hope to hear more ideas from you to solve the issue.

robbiedood commented 3 years ago

We got the same issue as well. Hope to hear more ideas from you to solve the issue.

Problem solved, below is our team's solution: Inside hector_exploration_node folder:

1) avoid parallel threading error by

add buffer_.setUsingDedicatedThread(true) right before it goes into costmap instance in src/exploration_node.cpp.

2) avoid tf2_ros compatibility issue by

remove '/' from /map and /base_link in config/costmap.yaml.

Hope to know if it works to you. @Silviis

StefanFabian commented 3 years ago

Good to hear that you solved the issue @lukelu0520. Perhaps you could make a PR with the necessary changes.

robbiedood commented 3 years ago

@StefanFabian , glad to hear from you. PR #27 has been submitted for your review.

Silviis commented 3 years ago

We got the same issue as well. Hope to hear more ideas from you to solve the issue.

Problem solved, below is our team's solution: Inside hector_exploration_node folder:

1. avoid parallel threading error by

add buffer_.setUsingDedicatedThread(true) right before it goes into costmap instance in src/exploration_node.cpp.

1. avoid tf2_ros compatibility issue by

remove '/' from /map and /base_link in config/costmap.yaml.

Hope to know if it works to you. @Silviis

@lukelu0520 Yep, the issue is gone after the merge! Thanks!