Skip to content

Commit ba400c8

Browse files
author
Vincent Samy
committed
Correct the binding
1 parent bb8271c commit ba400c8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Diff for: CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
3636
message(FATAL_ERROR "Insufficient gcc version (version superior to 5.0 is required)")
3737
endif()
3838
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
39-
message("ffucklkkk")
4039
if("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "3.4")
4140
message(FATAL_ERROR "Insufficient clang version (version superior to 3.4 is required)")
4241
endif()

Diff for: binding/python/MPController.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ auto NewControlBoundConstraint = &createSharedPointer<ControlBoundConstraint, co
6060
auto NewTrajectoryCost = &createSharedPointer<TrajectoryCost, const Eigen::MatrixXd&, const Eigen::VectorXd&>;
6161
auto NewTargetCost = &createSharedPointer<TargetCost, const Eigen::MatrixXd&, const Eigen::VectorXd&>;
6262
auto NewControlCost = &createSharedPointer<ControlCost, const Eigen::MatrixXd&, const Eigen::VectorXd&>;
63-
auto NewMixedTrajectoryCost = &createSharedPointer<MixedTrajectoryCost, const Eigen::MatrixXd&, const Eigen::MatrixXd&, const Eigen::VectorXd&>;
64-
auto NewMixedTargetCost = &createSharedPointer<MixedTargetCost, const Eigen::MatrixXd&, const Eigen::MatrixXd&, const Eigen::VectorXd&>;
63+
auto NewMixedCost = &createSharedPointer<MixedCost, const Eigen::MatrixXd&, const Eigen::MatrixXd&, const Eigen::VectorXd&>;
6564
} // namespace mpc
6665

6766
BOOST_PYTHON_MODULE(_mpc)
@@ -82,7 +81,7 @@ BOOST_PYTHON_MODULE(_mpc)
8281
def("NewTrajectoryCost", NewTrajectoryCost, "Create a new instance of a TrajectoryCost shared_ptr");
8382
def("NewTargetCost", NewTargetCost, "Create a new instance of a TargetCost shared_ptr");
8483
def("NewControlCost", NewControlCost, "Create a new instance of a ControlCost shared_ptr");
85-
def("NewMixedCost", MixedCost, "Create a new instance of a NewMixedCost shared_ptr");
84+
def("NewMixedCost", NewMixedCost, "Create a new instance of a NewMixedCost shared_ptr");
8685

8786
enum_<SolverFlag>("SolverFlag", "Flags to qp solver")
8887
.value("DEFAULT", SolverFlag::DEFAULT)

0 commit comments

Comments
 (0)