display-robot.cc 1.26 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) 2012 by Antonio El Khoury.
//
// This file is part of the hpp-model-urdf.
//
// hpp-model-urdf is free software: you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation, either version 3 of
// the License, or (at your option) any later version.
//
// hpp-model-urdf is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with hpp-model-urdf.  If not, see
// <http://www.gnu.org/licenses/>.

#define BOOST_TEST_MODULE display-robot

21
22
#include <fstream>

23
24
25
#include <boost/test/unit_test.hpp>
#include <boost/test/output_test_stream.hpp>

26
27
#include <hpp/model/device.hh>
#include <hpp/model/urdf/util.hh>
28
29
30
31
32

using boost::test_tools::output_test_stream;

BOOST_AUTO_TEST_CASE (display_robot)
{
Joseph Mirabel's avatar
Joseph Mirabel committed
33
34
  hpp::model::HumanoidRobotPtr_t humanoidRobot;
  hpp::model::urdf::loadRobotModel (humanoidRobot, "freeflyer", "romeo", "", "", "");
35
36
37

  std::ofstream log ("./display-robot.log");
  log << *(humanoidRobot.get ()) << std::endl;
38
}