Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

last_detection_ts_ initialization cause exception when using sim_time #36

Open
AravindaDP opened this issue Nov 3, 2020 · 3 comments
Open
Assignees

Comments

@AravindaDP
Copy link

AravindaDP commented Nov 3, 2020

https://github.com/IntelligentRoboticsLabs/gb_visual_detection_3d/blob/melodic/darknet_ros_3d/src/darknet_ros_3d/Darknet3D.cpp#L64 causes out of time range exceptions when using sim_time (Supposedly due to underflow)

using ros::Time(0) to initialize this parameter should be better approach. I'm happy to submit a PR if this is the correct way to resolve this.

@fmrico
Copy link
Contributor

fmrico commented Dec 2, 2020

Hi @AravindaDP

Yes, you are right. This is not the right way to start this attribute. I will be happy to accept your PR :)

Maybe you should add something more for avoiding pass line 168 if nothing has been received. The idea was to use the difference of time, but the situation before the first image is not so simple to resolve.

Thanks!!

@Engnation
Copy link

Engnation commented Feb 19, 2021

Hello,

I am getting the errors: "[darknet_3d-2] process has died", and also: "WARNING: no messages received and simulated time is active. Is /clock being published?" when doing a rostopic echo to /darknet_ros_3d/bounding_boxes while trying to run darknet_ros_3d within a Gazebo simulation.

Is this related to the same issue that is being discussed above? If so, @AravindaDP have you or @fmrico been able to find a solution?

If this is the same issue, I tried setting ros::Time(0), and also tried other threshold values on LN 168 (other then 2 seconds), but it didn't seem to work.

Any suggestions?

Thanks!

@Engnation
Copy link

Engnation commented Mar 17, 2021

Update: Now that I understand this problem better, I realize that I had misunderstood the original recommendation and had accidentally left the - ros::Duration(60.0) in place. By initializing last_detection_ts_ = ros::Time(0); the problem is now solved. Thank you @AravindaDP for this suggestion, and thank you @fmrico & @fgonzalezr1998 for providing this great ROS package!

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

No branches or pull requests

4 participants