Unverified Commit fc3e9894 authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub
Browse files

Merge pull request #1347 from jcarpent/topic/deprecated

Fix deprecated elements
parents 37e685a6 1dc540a3
Pipeline #12367 passed with stage
in 140 minutes and 48 seconds
......@@ -43,6 +43,12 @@ namespace pinocchio
: Base(lg_variant)
{}
LieGroupGenericTpl & operator=(const LieGroupGenericTpl & other)
{
static_cast<Base&>(*this) = other.toVariant();
return *this;
}
const LieGroupVariant & toVariant() const
{ return static_cast<const LieGroupVariant &>(*this); }
......
//
// Copyright (c) 2016-2018 CNRS
// Copyright (c) 2016-2020 CNRS INRIA
//
#include <iostream>
......@@ -10,16 +10,16 @@
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_SUITE ( BOOST_TEST_MODULE )
BOOST_AUTO_TEST_SUITE(BOOST_TEST_MODULE)
BOOST_AUTO_TEST_CASE ( buildModel )
BOOST_AUTO_TEST_CASE(buildModel)
{
std::string filename = PINOCCHIO_MODEL_DIR + std::string("/simple_model.py");
#ifndef NDEBUG
std::cout << "Parse filename \"" << filename << "\"" << std::endl;
#endif
pinocchio::Model model = pinocchio::python::buildModel(filename,"model",false);
pinocchio::Model model = pinocchio::python::buildModel(filename,"model");
#ifndef NDEBUG
std::cout << "This model has \"" << model.nq << "\" DoF" << std::endl;
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment