Coder Social home page Coder Social logo

robotology-playground / localize-superquadrics Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 8.85 MB

This module is to localize superquadrics whose dimensions and shape are known.

License: BSD 3-Clause "New" or "Revised" License

CMake 1.68% C++ 95.01% Thrift 3.32%

localize-superquadrics's People

Contributors

giuliavezzani avatar pattacini avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

localize-superquadrics's Issues

Vector are not received properly when using thrift

We would like to have this thrift service:

Vector localize_superq(1: string &object_names, 2: Bottle &points, 3: i32 object_num);

returning a Yarp Vector, defined in the idl.thrift as:

struct Vector
 {
 } (
    yarp.name = "yarp::sig::Vector"
    yarp.includefile="yarp/sig/Vector.h"
 )

However, the received value is not correct. In particular, the first two values of the received Bottle are not filled with the correct values.

Example

The Vector is correctly filled when sent. If we print the Vector just before the return statement, we can check that it is correctly filled.

The Bottle received is instead the following:

(6,2362767e-310, 6,2362767e-310, correct_value_2, correct_value_3, ...)

missing correct_value_0 and correct_value_1, independently from the dimension of the Vector.

Together with @drdanz, we investigated a little the problem. but we haven't found a solution yet.

To temporarly fix the bug, the thrift service returns a std::vector<double>.

Handle mutexes

Right now, the code is not building since the compiler doesn't know how to handle the name mutex (since it can be both the name of the global variable mutex of type yarp::os::Mutex or the class name for std::mutex)

Since yarp::os::Mutex are now deprecated, we should anyway switch to std::mutex.

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.