-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure instantiation of hardware classes work for python bindings (#1058
) (#1062) (cherry picked from commit db34dfa) Co-authored-by: Olivier Stasse <[email protected]>
- Loading branch information
1 parent
5504b6a
commit 0dfe01a
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright 2023 LAAS CNRS | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#include <gmock/gmock.h> | ||
|
||
#include "hardware_interface/actuator.hpp" | ||
#include "hardware_interface/actuator_interface.hpp" | ||
#include "hardware_interface/sensor.hpp" | ||
#include "hardware_interface/sensor_interface.hpp" | ||
#include "hardware_interface/system.hpp" | ||
#include "hardware_interface/system_interface.hpp" | ||
|
||
class TestInstantiationHardwares : public ::testing::Test | ||
{ | ||
protected: | ||
static void SetUpTestCase() {} | ||
}; | ||
|
||
TEST_F(TestInstantiationHardwares, build_actuator) { hardware_interface::Actuator anActuator; } | ||
|
||
TEST_F(TestInstantiationHardwares, build_sensor) { hardware_interface::Sensor aSensor; } | ||
|
||
TEST_F(TestInstantiationHardwares, build_system) { hardware_interface::System aSystem; } |