-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
131 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/bash | ||
find . -type d \( -name bullet3_ros -o -name fcl_ros -o -name libccd_ros -o -name gtest_ros -o -name tesseract_ext \) -prune -o -type f -regex '.*\.\(cpp\|hpp\|cc\|cxx\|h\|hxx\)' -exec clang-format-8 -style=file -i {} \; | ||
find . -type d \( -name bullet3_ros -o -name fcl_ros -o -name libccd_ros -o -name gtest_ros -o -name tesseract_ext \) -prune -o -type f -regex '.*\.\(cpp\|hpp\|cc\|cxx\|h\|hxx\)' -exec clang-format-15 $@ --style=file -i {} \; |
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,48 @@ | ||
#include <tesseract_common/macros.h> | ||
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH | ||
#include <gtest/gtest.h> | ||
TESSERACT_COMMON_IGNORE_WARNINGS_POP | ||
|
||
#include <tesseract_examples/freespace_hybrid_example.h> | ||
#include <tesseract_support/tesseract_support_resource_locator.h> | ||
|
||
using namespace tesseract_examples; | ||
using namespace tesseract_common; | ||
using namespace tesseract_environment; | ||
|
||
TEST(TesseractExamples, FreespaceHybridTrajOptExampleUnit) // NOLINT | ||
{ | ||
auto locator = std::make_shared<TesseractSupportResourceLocator>(); | ||
tesseract_common::fs::path urdf_path = | ||
locator->locateResource("package://tesseract_support/urdf/lbr_iiwa_14_r820.urdf")->getFilePath(); | ||
tesseract_common::fs::path srdf_path = | ||
locator->locateResource("package://tesseract_support/urdf/lbr_iiwa_14_r820.srdf")->getFilePath(); | ||
auto env = std::make_shared<Environment>(); | ||
if (!env->init(urdf_path, srdf_path, locator)) | ||
exit(1); | ||
|
||
FreespaceHybridExample example(env, nullptr, false, false); | ||
EXPECT_TRUE(example.run()); | ||
} | ||
|
||
TEST(TesseractExamples, FreespaceHybridTrajOptIfoptExampleUnit) // NOLINT | ||
{ | ||
auto locator = std::make_shared<TesseractSupportResourceLocator>(); | ||
tesseract_common::fs::path urdf_path = | ||
locator->locateResource("package://tesseract_support/urdf/lbr_iiwa_14_r820.urdf")->getFilePath(); | ||
tesseract_common::fs::path srdf_path = | ||
locator->locateResource("package://tesseract_support/urdf/lbr_iiwa_14_r820.srdf")->getFilePath(); | ||
auto env = std::make_shared<Environment>(); | ||
if (!env->init(urdf_path, srdf_path, locator)) | ||
exit(1); | ||
|
||
FreespaceHybridExample example(env, nullptr, true, false); | ||
EXPECT_TRUE(example.run()); | ||
} | ||
|
||
int main(int argc, char** argv) | ||
{ | ||
testing::InitGoogleTest(&argc, argv); | ||
|
||
return RUN_ALL_TESTS(); | ||
} |
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