robotology-playground / localize-superquadrics Goto Github PK
View Code? Open in Web Editor NEWThis module is to localize superquadrics whose dimensions and shape are known.
License: BSD 3-Clause "New" or "Revised" License
This module is to localize superquadrics whose dimensions and shape are known.
License: BSD 3-Clause "New" or "Revised" License
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.
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>
.
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
)
localize-superquadrics/src/main.cpp
Line 62 in c1cc37d
Since yarp::os::Mutex
are now deprecated, we should anyway switch to std::mutex
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.