Code Monkey home page Code Monkey logo

Comments (4)

whoenig avatar whoenig commented on August 16, 2024
  • Do other packages (e.g. vicon_bridge) work correctly with your setup (to exclude network issues)?
  • Are the markers visible in VICON Tracker? Specifically, we only use unlabeled markers, so make sure that you don't have any object tracking in Tracker enabled.

from crazyswarm.

The-SS avatar The-SS commented on August 16, 2024

vicon_bridge works with my setup. But, if I'm not mistaken, crazyswarm does not usevicon_bridge. Just to make sure, is there anywhere in particular that the IP address of the VICON server computer must be used?

Regarding the markers and VICON, I'm using VICON Nexus. The markers are visible. I create segments corresponding to the crazyflies, but I do not label the markers.

from crazyswarm.

whoenig avatar whoenig commented on August 16, 2024

You are correct that vicon_bridge is not used, however vicon_bridge uses the same SDK (Vicon DataStream SDK).

You only need to use the IP address or hostname in the launch file (https://github.com/USC-ACTLab/crazyswarm/blob/master/ros_ws/src/crazyswarm/launch/hover_swarm.launch#L56).

I never used Nexus, so I am not sure what the behavior is (and what you mean by "segments").
Perhaps try the following changes:
1.) https://github.com/USC-ACTLab/libmotioncapture/blob/master/src/vicon.cpp#L33: Also call pImpl->client.EnableMarkerData();
2.) https://github.com/USC-ACTLab/libmotioncapture/blob/master/src/vicon.cpp#L112-L120
Copy this segment directly below and use GetMarkerCount() and GetMarkerGlobalTranslation() instead of the Unlabeled calls.

This will take both labeled and unlabeled markers into account, in case VICON Nexus has a different interpretation of unlabeled markers (in Tracker markers that are not associated with objects/segments are considered unlabeled).

from crazyswarm.

The-SS avatar The-SS commented on August 16, 2024

Actually, I found out that the problem was that a connection was not being established between the computer and the VICON server computer. I was using the hostname of the server, but a connection was not being established. When I replaced the hostname by the IP address of the VICON server, a connection was established, the crazyflies were added, and I saw the crazyflies on the RVIZ graph.

Note: Using GetMarkerCount() and GetMarkerGlobalTranslation() instead of the Unlabeled calls gave build errors because they are not defined. However, GetLabeledMarkerCount() and GetLabeledMarkerGlobalTranslation() are defined. Nonetheless, I did not have to change them.

from crazyswarm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.