-
Notifications
You must be signed in to change notification settings - Fork 28
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
Bump CMake version to avoid CMP0048 warning #1
Bump CMake version to avoid CMP0048 warning #1
Conversation
Just experienced the same behavior yesterday (in a container). Also published TFs have NaN quaternions. (Thank you for the work @machinekoder ) [ERROR] [1610030540.895047096, 39.979000000]: Ignoring transform for child_frame_id "ar_marker_7" from authority "unknown_publisher" because of an invalid quaternion in the transform (-nan -nan -nan -nan)
|
@machinekoder @gtoff |
Yes indeed. That's the one I am using. Sorry, I should have mentioned it. |
@fmessmer , @machinekoder , we've seen these nan errors also in the |
We're running simulations with both kinetic and noetic. With the former NaNs are extremely infrequent, while with the latter they happen often. Unfortunately, so many other components are involved (including simulated cameras) that the problem could indeed be somewhere else. |
I have tracked down the Nan issue and fixed this locally for individual markers by changing a few lines of code in nodes/InvididualMarkersNoKinect.cpp. Here is the fix (roughly line 112). Essentially the way the quaternions were retrieved didn't work properly.
I also modified the catch at the end of the callback to catch all exceptions, because I was randomly getting cv errors that would shut down the node, which was annoying.
Now the node works well (albeit it seems slower than the melodic version) Anyways, I don't have the time to go and dig deeper at the root cause of why the quaternion retrieval failed and propose a proper pull request, but this should help anyone trying to debug it, or get it running. |
Great, thanks! I tested it and it worked. To make it work with the marker bundles, similar changes are to be made to the code in the other scripts under the nodes/ folder. I tested this as well and it works now! |
Fix OpenCV error
[TEST] feature/rios_bug_fix for nan bug
remove deprecated cmake_policy
Hello, I am still facing the same NaN issue. When trying to detect a Alvar AR tag, I encounter the following message.
I encountered the following problems when installing ar_track_alvar for ROS noetic via catkin.
Could this be causing the error? <\p> |
Ok I think I figured out what is the issue. @chriskeraly-rios fixed the file node/IndividualMarkersNoKinect.cpp. However, the file node/IndividualMarkers.cpp also suffers from the same issue. So, if you were to apply the same chriskeraly-rios fix to IndividualMarkers.cpp, issue can be resolved. |
@machinekoder
thanks for getting started with ros-perception#82
I'm no perception expert, but currently trying to set our robot up for Noetic and
ar_track_alvar
is one of our dependenciesI can confirm this branch compiles and runs under Noetic 👍
I just bumped the cmake version as suggested in the migration guide
when testing this branch (in a VM, with a rosbag), I found that sometimes
/ar_pose_marker
returns marker poses withnan
entries - while in the next moment the detection returns the correct pose again:I don't know whether this is an issue of my testing setup (VM, rosbag) or something with the
noetic-devel
branch (or Noetic itself) - as the same rosbag test doesn't show this behavior under Melodicstill, do you intend to open up a PR against
ros-perception
, in order forar_track_alvar
to be tested by more people and finally be released?