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

Wrong timestamps when running with noetic #12

Open
bedaberner opened this issue Nov 22, 2021 · 3 comments
Open

Wrong timestamps when running with noetic #12

bedaberner opened this issue Nov 22, 2021 · 3 comments

Comments

@bedaberner
Copy link

Environment
Please complete the following information.
ROS distribution: noetic
Operating system: 20.04
Python version: 3.8

natnet_ros version
Try the latest commit in the dev branch in case your issue is already fixed.
natnet_ros branch: dev

Describe the bug
When running the driver with ros noetic under python 3.8, the timestamps are not in the expected time reference.

As is described in the python_natnet package, the time source used for the timestamps is timeit.default_timer.
The source for timeit.default_timer seems to change between python2.7 (where it is time since last epoch) and python 3.8 (where it seems to be since boot time of the system).
This means, that in noetic which uses python 3.8, the timestamps don't match and are not usable for tf transforms etc.

@mje-nz
Copy link
Owner

mje-nz commented Nov 27, 2021

Thanks for the report :)

I don't have time to work on this at the moment, but I would certainly accept a PR.

@aarsht7
Copy link

aarsht7 commented Apr 27, 2022

Hey @bedaberner I am trying to connect to the Motive 2.2.0 using ros noetic but I am facing some issues. Do you mind helping a bit? Thanks.
Steps I followed,

  • I cloned repo and make it in the ros workspace
  • I run rosrun natnet_ros client _server:=192.168.0.100 Where I my PC with ROS master is connected to the network with the wifi of the same router
  • I get this output [INFO] [1651068734.595030]: Connecting to 192.168.0.100

But it never gets connected to the server.

My configuration in the Motive app is as follows.

  • Broadcast Frame Data : On
  • Local Interface : 192.168.0.100
  • Labeled Markers : On
  • Unlabeled Markers : On
  • Asset Markers : On
  • Rigid Bodies : On
  • Up Axis : Z Up
  • Remote Trigger : Off
  • Transmission Type : Multicast

In the advanced settings its the same as default.

Let me know if you need any other inputs.
Thanks!

@aarsht7
Copy link

aarsht7 commented Apr 27, 2022

Anyway I found it. It was windows firewall. Stupid thing 😓

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

3 participants