urdfdom_headers 1.0.0 (new formula)
Closes #23901. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
ae521f07de
commit
bdbeb332e9
1 changed files with 30 additions and 0 deletions
30
Formula/urdfdom_headers.rb
Normal file
30
Formula/urdfdom_headers.rb
Normal file
|
@ -0,0 +1,30 @@
|
|||
class UrdfdomHeaders < Formula
|
||||
desc "Headers for Unified Robot Description Format (URDF) parsers"
|
||||
homepage "https://wiki.ros.org/urdfdom_headers/"
|
||||
url "https://github.com/ros/urdfdom_headers/archive/1.0.0.tar.gz"
|
||||
sha256 "f341e9956d53dc7e713c577eb9a8a7ee4139c8b6f529ce0a501270a851673001"
|
||||
|
||||
depends_on "cmake" => :build
|
||||
|
||||
needs :cxx11
|
||||
|
||||
def install
|
||||
ENV.cxx11
|
||||
system "cmake", ".", *std_cmake_args
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.cpp").write <<~EOS
|
||||
#include <urdf_model/pose.h>
|
||||
int main() {
|
||||
double quat[4];
|
||||
urdf::Rotation rot;
|
||||
rot.getQuaternion(quat[0], quat[1], quat[2], quat[3]);
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
system ENV.cxx, "test.cpp", "-std=c++11", "-o", "test"
|
||||
system "./test"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue