leggedrobotics / free_gait

An Architecture for the Versatile Control of Legged Robots
BSD 3-Clause "New" or "Revised" License
408 stars 121 forks source link

Errors << segmented_planes_terrain_model:make #79

Closed 17609394ch closed 1 month ago

17609394ch commented 1 month ago

Errors << segmented_planes_terrain_model:make /home/ocs2_mpc_12_8/logs/segmented_planes_terrain_model/build.make.001.log In file included from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesTerrainModel.h:11, from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/src/SegmentedPlanesTerrainModel.cpp:5: /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesSignedDistanceField.h: In constructor ‘switched_model::SegmentedPlanesSignedDistanceField::SegmentedPlanesSignedDistanceField(const grid_map::GridMap&, const string&, double, double)’: /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesSignedDistanceField.h:23:59: error: no matching function for call to ‘grid_map::SignedDistanceField::SignedDistanceField(const gridmap::GridMap&, const string&, double&, double&)’ 23 | : sdf(gridMap, elevationLayer, minHeight, maxHeight) {} | ^ In file included from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesSignedDistanceField.h:9, from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesTerrainModel.h:11, from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/src/SegmentedPlanesTerrainModel.cpp:5: /opt/ros/noetic/include/grid_map_sdf/SignedDistanceField.hpp:24:3: note: candidate: ‘grid_map::SignedDistanceField::SignedDistanceField()’ 24 | SignedDistanceField(); | ^~~~~~~ /opt/ros/noetic/include/grid_map_sdf/SignedDistanceField.hpp:24:3: note: candidate expects 0 arguments, 4 provided /opt/ros/noetic/include/grid_map_sdf/SignedDistanceField.hpp:21:7: note: candidate: ‘grid_map::SignedDistanceField::SignedDistanceField(const grid_map::SignedDistanceField&)’ 21 | class SignedDistanceField | ^~~~~~~ /opt/ros/noetic/include/grid_map_sdf/SignedDistanceField.hpp:21:7: note: candidate expects 1 argument, 4 provided In file included from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesTerrainModel.h:11, from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/src/SegmentedPlanesTerrainModel.cpp:5: /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesSignedDistanceField.h: In member function ‘virtual ocs2::scalar_t switched_model::SegmentedPlanesSignedDistanceField::value(const vector3_t&) const’: /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesSignedDistanceField.h:28:106: error: ‘const class grid_map::SignedDistanceField’ has no member named ‘value’ 28 | switched_model::scalar_t value(const switched_model::vector3t& position) const override { return sdf.value(position); } | ^~~~~ /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesSignedDistanceField.h: In member function ‘virtual switched_model::vector3_t switched_model::SegmentedPlanesSignedDistanceField::derivative(const vector3_t&) const’: /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesSignedDistanceField.h:30:112: error: ‘const class grid_map::SignedDistanceField’ has no member named ‘derivative’ 30 | switched_model::vector3_t derivative(const switched_model::vector3t& position) const override { return sdf.derivative(position); } | ^~~~~~ In file included from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesTerrainModel.h:11, from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/src/SegmentedPlanesTerrainModel.cpp:5: /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesSignedDistanceField.h: In member function ‘virtual std::pair<double, Eigen::Matrix<double, 3, 1> > switched_model::SegmentedPlanesSignedDistanceField::valueAndDerivative(const vector3_t&) const’: /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesSignedDistanceField.h:34:17: error: ‘const class gridmap::SignedDistanceField’ has no member named ‘valueAndDerivative’ 34 | return sdf.valueAndDerivative(position); | ^~~~~~ make[2]: [CMakeFiles/segmented_planes_terrain_model.dir/build.make:63: CMakeFiles/segmented_planes_terrain_model.dir/src/SegmentedPlanesTerrainModel.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... In file included from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesTerrainModel.h:11, from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesTerrainModelRos.h:17, from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/src/SegmentedPlanesTerrainModelRos.cpp:5: /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesSignedDistanceField.h: In constructor ‘switched_model::SegmentedPlanesSignedDistanceField::SegmentedPlanesSignedDistanceField(const grid_map::GridMap&, const string&, double, double)’: /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesSignedDistanceField.h:23:59: error: no matching function for call to ‘grid_map::SignedDistanceField::SignedDistanceField(const gridmap::GridMap&, const string&, double&, double&)’ 23 | : sdf(gridMap, elevationLayer, minHeight, maxHeight) {} | ^ In file included from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesSignedDistanceField.h:9, from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesTerrainModel.h:11, from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesTerrainModelRos.h:17, from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/src/SegmentedPlanesTerrainModelRos.cpp:5: /opt/ros/noetic/include/grid_map_sdf/SignedDistanceField.hpp:24:3: note: candidate: ‘grid_map::SignedDistanceField::SignedDistanceField()’ 24 | SignedDistanceField(); | ^~~~~~~ /opt/ros/noetic/include/grid_map_sdf/SignedDistanceField.hpp:24:3: note: candidate expects 0 arguments, 4 provided /opt/ros/noetic/include/grid_map_sdf/SignedDistanceField.hpp:21:7: note: candidate: ‘grid_map::SignedDistanceField::SignedDistanceField(const grid_map::SignedDistanceField&)’ 21 | class SignedDistanceField | ^~~~~~~ /opt/ros/noetic/include/grid_map_sdf/SignedDistanceField.hpp:21:7: note: candidate expects 1 argument, 4 provided In file included from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesTerrainModel.h:11, from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesTerrainModelRos.h:17, from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/src/SegmentedPlanesTerrainModelRos.cpp:5: /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesSignedDistanceField.h: In member function ‘virtual ocs2::scalar_t switched_model::SegmentedPlanesSignedDistanceField::value(const vector3_t&) const’: /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesSignedDistanceField.h:28:106: error: ‘const class grid_map::SignedDistanceField’ has no member named ‘value’ 28 | switched_model::scalar_t value(const switched_model::vector3t& position) const override { return sdf.value(position); } | ^~~~~ /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesSignedDistanceField.h: In member function ‘virtual switched_model::vector3_t switched_model::SegmentedPlanesSignedDistanceField::derivative(const vector3_t&) const’: /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesSignedDistanceField.h:30:112: error: ‘const class grid_map::SignedDistanceField’ has no member named ‘derivative’ 30 | switched_model::vector3_t derivative(const switched_model::vector3t& position) const override { return sdf.derivative(position); } | ^~~~~~ In file included from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesTerrainModel.h:11, from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesTerrainModelRos.h:17, from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/src/SegmentedPlanesTerrainModelRos.cpp:5: /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesSignedDistanceField.h: In member function ‘virtual std::pair<double, Eigen::Matrix<double, 3, 1> > switched_model::SegmentedPlanesSignedDistanceField::valueAndDerivative(const vector3_t&) const’: /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/include/segmented_planes_terrain_model/SegmentedPlanesSignedDistanceField.h:34:17: error: ‘const class gridmap::SignedDistanceField’ has no member named ‘valueAndDerivative’ 34 | return sdf.valueAndDerivative(position); | ^~~~~~ /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/src/SegmentedPlanesTerrainModelRos.cpp: In member function ‘void switched_model::SegmentedPlanesTerrainModelRos::callback(const ConstPtr&)’: /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/src/SegmentedPlanesTerrainModelRos.cpp:80:131: error: no matching function for call to ‘grid_map::GridMapRosConverter::toPointCloud(const grid_map::SignedDistanceField&, sensormsgs::PointCloud2<std::allocator >&, int, switched_model::SegmentedPlanesTerrainModelRos::callback(const ConstPtr&)::<lambda(float)>)’ 80 | grid_map::GridMapRosConverter::toPointCloud(sdf, *pointCloud2MsgPtr, 1, [](float val) { return -0.05F <= val && val <= 0.0F; }); | ^ In file included from /home/ocs2_mpc_12_8/src/ocs2/ocs2_robotic_examples/ocs2_perceptive_anymal/segmented_planes_terrain_model/src/SegmentedPlanesTerrainModelRos.cpp:7: /opt/ros/noetic/include/grid_map_ros/GridMapRosConverter.hpp:91:15: note: candidate: ‘static void grid_map::GridMapRosConverter::toPointCloud(const grid_map::GridMap&, const string&, sensor_msgs::PointCloud2&)’ 91 | static void toPointCloud(const grid_map::GridMap& gridMap, | ^~~~ /opt/ros/noetic/include/grid_map_ros/GridMapRosConverter.hpp:91:15: note: candidate expects 3 arguments, 4 provided /opt/ros/noetic/include/grid_map_ros/GridMapRosConverter.hpp:104:15: note: candidate: ‘static void grid_map::GridMapRosConverter::toPointCloud(const grid_map::GridMap&, const std::vector<std::__cxx11::basic_string >&, const string&, sensor_msgs::PointCloud2&)’ 104 | static void toPointCloud(const grid_map::GridMap& gridMap, | ^~~~ /opt/ros/noetic/include/grid_map_ros/GridMapRosConverter.hpp:104:53: note: no known conversion for argument 1 from ‘const grid_map::SignedDistanceField’ to ‘const grid_map::GridMap&’ 104 | static void toPointCloud(const grid_map::GridMap& gridMap, | ~~~~~^~~ make[2]: [CMakeFiles/segmented_planes_terrain_model.dir/build.make:76: CMakeFiles/segmented_planes_terrain_model.dir/src/SegmentedPlanesTerrainModelRos.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:1165: CMakeFiles/segmented_planes_terrain_model.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 cd /home/ocs2_mpc_12_8/build/segmented_planes_terrain_model; catkin build --get-env segmented_planes_terrain_model | catkin env -si /usr/bin/make --jobserver-auth=3,4; cd -

........................................................................................................... Failed << segmented_planes_terrain_model:make [ Exited with code 2 ]