|
From: <tf...@us...> - 2009-06-23 21:15:18
|
Revision: 17546
http://personalrobots.svn.sourceforge.net/personalrobots/?rev=17546&view=rev
Author: tfoote
Date: 2009-06-23 21:15:17 +0000 (Tue, 23 Jun 2009)
Log Message:
-----------
filling geometery stack
Added Paths:
-----------
pkg/trunk/stacks/geometery/angles/
pkg/trunk/stacks/geometery/bullet/
pkg/trunk/stacks/geometery/eigen/
pkg/trunk/stacks/geometery/kdl/
pkg/trunk/stacks/geometery/tf/
pkg/trunk/stacks/geometery/tf/CMakeLists.txt
pkg/trunk/stacks/geometery/tf/scripts/
pkg/trunk/stacks/geometery/tf_conversions/
Removed Paths:
-------------
pkg/trunk/3rdparty/eigen/
pkg/trunk/3rdparty/kdl/
pkg/trunk/common/angles/
pkg/trunk/common/bullet/
pkg/trunk/common/tf/
pkg/trunk/stacks/geometery/tf/CMakeLists.txt
pkg/trunk/stacks/geometery/tf/reset_time.py
pkg/trunk/stacks/geometery/tf/simpletest.cpp
pkg/trunk/stacks/geometery/tf/viewFrames.py
pkg/trunk/util/tf_conversions/
Property changes on: pkg/trunk/stacks/geometery/angles
___________________________________________________________________
Added: svn:mergeinfo
+ /pkg/branches/gazebo-branch-merge/common/angles:15683-15684,15739-15794,15797-15820,15822-15839,15852-15870,15983-16008,16010-16016,16129-16141,16145-16169,16245-16262,16274-16334
Property changes on: pkg/trunk/stacks/geometery/bullet
___________________________________________________________________
Added: svn:ignore
+ bullet
bullet_svn
Added: svn:mergeinfo
+ /pkg/branches/gazebo-branch-merge/common/bullet:15683-15684,15739-15794,15797-15820,15822-15839,15852-15870,15983-16008,16010-16016,16129-16141,16145-16169,16245-16262,16274-16334
Property changes on: pkg/trunk/stacks/geometery/eigen
___________________________________________________________________
Added: svn:mergeinfo
+ /pkg/branches/gazebo-branch-merge/3rdparty/eigen:15683-15684,15739-15794,15797-15820,15822-15839,15852-15870,15983-16008,16010-16016,16129-16141,16145-16169,16245-16262,16274-16334
Property changes on: pkg/trunk/stacks/geometery/kdl
___________________________________________________________________
Added: svn:ignore
+ kdl
wiped
installed
Added: svn:mergeinfo
+ /pkg/branches/gazebo-branch-merge/3rdparty/kdl:15683-15684,15739-15794,15797-15820,15822-15839,15852-15870,15983-16008,16010-16016,16129-16141,16145-16169,16245-16262,16274-16334
Property changes on: pkg/trunk/stacks/geometery/tf
___________________________________________________________________
Added: svn:ignore
+ simpletest
tf_unittest
tf_unittest_future
cache_unittest
testListener
testBroadcaster
test_notifier
bullet_unittest
lib
build
btTest
transform_sender
frames.gv
frames.ps
frames.pdf
.build-version
.rosgcov_files
tf_monitor
bin
change_notifier
tf_echo
Added: svn:mergeinfo
+ /pkg/branches/gazebo-branch-merge/common/tf:15683-15684,15739-15794,15797-15820,15822-15839,15852-15870,15983-16008,16010-16016,16129-16141,16145-16169,16245-16262,16274-16334
Deleted: pkg/trunk/stacks/geometery/tf/CMakeLists.txt
===================================================================
--- pkg/trunk/common/tf/CMakeLists.txt 2009-06-23 20:22:25 UTC (rev 17533)
+++ pkg/trunk/stacks/geometery/tf/CMakeLists.txt 2009-06-23 21:15:17 UTC (rev 17546)
@@ -1,109 +0,0 @@
-cmake_minimum_required(VERSION 2.4.6)
-include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
-set(ROS_BUILD_TYPE Release)
-rospack(tf)
-
-rospack_add_boost_directories()
-
-genmsg()
-gensrv()
-
-rospack_add_library(tf src/tf.cpp src/transform_listener.cpp src/cache.cpp src/message_notifier.cpp src/transform_broadcaster.cpp)
-rospack_link_boost(tf thread)
-
-rospack_add_executable(tf_echo src/tf_echo.cpp)
-target_link_libraries(tf_echo tf)
-
-rospack_add_executable(change_notifier src/change_notifier.cpp)
-target_link_libraries(change_notifier tf)
-
-rospack_add_executable(tf_monitor src/tf_monitor.cpp)
-target_link_libraries(tf_monitor tf)
-
-rospack_add_executable(simpletest simpletest.cpp)
-target_link_libraries(simpletest tf)
-#rospack_add_executable(testtf src/test/testtf.cc)
-#target_link_libraries(testtf TF)
-#rospack_add_executable(test_interp src/test/test_interp.cc)
-#target_link_libraries(test_interp TF)
-#rospack_add_executable(testMatrix src/test/testMatrix.cc)
-#target_link_libraries(testMatrix TF)
-#rospack_add_executable(testMatrixQuaternion src/test/testMatrixQuaternion.cc)
-#target_link_libraries(testMatrixQuaternion TF)
-#rospack_add_gtest(pose3d_unittest test/pose3d_unittest.cpp src/Pose3D.cpp)
-#target_link_libraries(pose3d_unittest TF)
-rospack_add_gtest(test/tf_unittest test/tf_unittest.cpp)
-target_link_libraries(test/tf_unittest tf)
-rospack_add_gtest_future(test/tf_unittest_future test/tf_unittest_future.cpp)
-target_link_libraries(test/tf_unittest_future tf)
-rospack_add_gtest(test/cache_unittest test/cache_unittest.cpp)
-target_link_libraries(test/cache_unittest tf)
-
-rospack_add_gtest(test/test_permuter test/test_permuter.cpp)
-
-### Benchmarking
-rospack_add_gtest_future(test/tf_benchmark test/tf_benchmark.cpp)
-target_link_libraries(test/tf_benchmark tf)
-
-rospack_add_executable(btTest test/quaternion.cpp)
-rospack_add_executable(testListener test/testListener.cpp)
-target_link_libraries(testListener tf)
-
-rospack_add_executable(testBroadcaster test/testBroadcaster.cpp)
-target_link_libraries(testBroadcaster tf)
-rospack_add_executable(transform_sender src/transform_sender.cpp)
-target_link_libraries(transform_sender tf)
-
-rospack_add_executable(test_notifier EXCLUDE_FROM_ALL test/test_notifier.cpp)
-rospack_declare_test(test_notifier)
-rospack_add_gtest_build_flags(test_notifier)
-target_link_libraries(test_notifier tf ${Boost_LIBRARIES})
-rospack_add_rostest(test/test_notifier.xml)
-
-### python header for swig
-find_package(PythonLibs REQUIRED)
-include_directories(${PYTHON_INCLUDE_PATH})
-
-# Find the combined swig flags for this project
-_rospack_invoke(${PROJECT_NAME} ${PROJECT_NAME} SWIG_FLAGS "export" "--lang=swig" "--attrib=flags")
-set(SWIG_FLAGS ${${PROJECT_NAME}_SWIG_FLAGS})
-
-
-# Add a custom command for generating the swig output files
-set(SWIG_INTERFACE_FILE ${PROJECT_SOURCE_DIR}/swig/tf_swig.i)
-set(SWIG_OUTPUT_PYTHON_FILE ${PROJECT_SOURCE_DIR}/src/tf/tf_swig.py)
-
-# Deal with CMake 2.4 vs. 2.6
-if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER 2.4) # CMake 2.6
- set(SWIG_OUTPUT_CPP_FILE ${PROJECT_SOURCE_DIR}/swig/tf_swig_wrap.cpp)
- set(SWIG_COMMAND swig ${SWIG_FLAGS} -o ${SWIG_OUTPUT_CPP_FILE} -outdir ${PROJECT_SOURCE_DIR}/src/tf -I${PROJECT_SOURCE_DIR}/build/include -module ${PROJECT_NAME}_swig ${SWIG_INTERFACE_FILE})
-else("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER 2.4) # CMake 2.4
- set(SWIG_OUTPUT_CPP_FILE swig/tf_swig_wrap.cpp)
- set(SWIG_COMMAND swig ${SWIG_FLAGS} -o ../${SWIG_OUTPUT_CPP_FILE} -outdir ../src/tf -I../build/include -module ${PROJECT_NAME}_swig ${SWIG_INTERFACE_FILE})
-endif("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER 2.4)
-
-set_source_files_properties(${SWIG_OUTPUT_CPP_FILE} PROPERTIES GENERATED true)
-add_custom_command(OUTPUT ${SWIG_OUTPUT_CPP_FILE}
- ${SWIG_OUTPUT_PYTHON_FILE}
- COMMAND ${SWIG_COMMAND}
- DEPENDS ${SWIG_INTERFACE_FILE}
- swig/tf/tf_swig.h)
-
-# We add src/wx_rosout to the include list so that
-# ogre_tools_swig_generated.cpp can find its headers. This is part of a
-# workaround for a deficiency in CMake 2.4's handling of generated sources.
-#####include_directories(${PROJECT_SOURCE_DIR}/src/rxtools)
-# shared library (with SWIG)
-rospack_add_library(python_${PROJECT_NAME} ${SWIG_OUTPUT_CPP_FILE})
-target_link_libraries(python_${PROJECT_NAME} tf ${PYTHON_LIBRARIES})
-
-# swig python needs a shared library named _<modulename>.[so|dll|...]
-# this renames the output file to conform to that by prepending an underscore and removing the "lib" prefix
-set_target_properties(python_${PROJECT_NAME}
- PROPERTIES OUTPUT_NAME _${PROJECT_NAME}_swig
- PREFIX "")
-
-
-# Tests for swig
-rospack_add_pyunit_future(test/test_datatype_conversion.py)
-
Copied: pkg/trunk/stacks/geometery/tf/CMakeLists.txt (from rev 17542, pkg/trunk/common/tf/CMakeLists.txt)
===================================================================
--- pkg/trunk/stacks/geometery/tf/CMakeLists.txt (rev 0)
+++ pkg/trunk/stacks/geometery/tf/CMakeLists.txt 2009-06-23 21:15:17 UTC (rev 17546)
@@ -0,0 +1,97 @@
+cmake_minimum_required(VERSION 2.4.6)
+include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
+set(ROS_BUILD_TYPE Release)
+rospack(tf)
+
+rospack_add_boost_directories()
+
+genmsg()
+gensrv()
+
+rospack_add_library(tf src/tf.cpp src/transform_listener.cpp src/cache.cpp src/message_notifier.cpp src/transform_broadcaster.cpp)
+rospack_link_boost(tf thread)
+
+rospack_add_executable(bin/tf_echo src/tf_echo.cpp)
+target_link_libraries(bin/tf_echo tf)
+
+rospack_add_executable(bin/change_notifier src/change_notifier.cpp)
+target_link_libraries(bin/change_notifier tf)
+
+rospack_add_executable(bin/tf_monitor src/tf_monitor.cpp)
+target_link_libraries(bin/tf_monitor tf)
+
+rospack_add_gtest(test/tf_unittest test/tf_unittest.cpp)
+target_link_libraries(test/tf_unittest tf)
+rospack_add_gtest_future(test/tf_unittest_future test/tf_unittest_future.cpp)
+target_link_libraries(test/tf_unittest_future tf)
+rospack_add_gtest(test/cache_unittest test/cache_unittest.cpp)
+target_link_libraries(test/cache_unittest tf)
+
+rospack_add_gtest(test/test_permuter test/test_permuter.cpp)
+
+### Benchmarking
+rospack_add_gtest_future(test/tf_benchmark test/tf_benchmark.cpp)
+target_link_libraries(test/tf_benchmark tf)
+
+rospack_add_executable(test/btTest test/quaternion.cpp)
+rospack_add_executable(test/testListener test/testListener.cpp)
+target_link_libraries(test/testListener tf)
+
+rospack_add_executable(test/testBroadcaster test/testBroadcaster.cpp)
+target_link_libraries(test/testBroadcaster tf)
+rospack_add_executable(bin/transform_sender src/transform_sender.cpp)
+target_link_libraries(bin/transform_sender tf)
+
+rospack_add_executable(test/test_notifier EXCLUDE_FROM_ALL test/test_notifier.cpp)
+rospack_declare_test(test/test_notifier)
+rospack_add_gtest_build_flags(test/test_notifier)
+target_link_libraries(test/test_notifier tf ${Boost_LIBRARIES})
+rospack_add_rostest(test/test_notifier.xml)
+
+### python header for swig
+find_package(PythonLibs REQUIRED)
+include_directories(${PYTHON_INCLUDE_PATH})
+
+# Find the combined swig flags for this project
+_rospack_invoke(${PROJECT_NAME} ${PROJECT_NAME} SWIG_FLAGS "export" "--lang=swig" "--attrib=flags")
+set(SWIG_FLAGS ${${PROJECT_NAME}_SWIG_FLAGS})
+
+
+# Add a custom command for generating the swig output files
+set(SWIG_INTERFACE_FILE ${PROJECT_SOURCE_DIR}/swig/tf_swig.i)
+set(SWIG_OUTPUT_PYTHON_FILE ${PROJECT_SOURCE_DIR}/src/tf/tf_swig.py)
+
+# Deal with CMake 2.4 vs. 2.6
+if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER 2.4) # CMake 2.6
+ set(SWIG_OUTPUT_CPP_FILE ${PROJECT_SOURCE_DIR}/swig/tf_swig_wrap.cpp)
+ set(SWIG_COMMAND swig ${SWIG_FLAGS} -o ${SWIG_OUTPUT_CPP_FILE} -outdir ${PROJECT_SOURCE_DIR}/src/tf -I${PROJECT_SOURCE_DIR}/build/include -module ${PROJECT_NAME}_swig ${SWIG_INTERFACE_FILE})
+else("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER 2.4) # CMake 2.4
+ set(SWIG_OUTPUT_CPP_FILE swig/tf_swig_wrap.cpp)
+ set(SWIG_COMMAND swig ${SWIG_FLAGS} -o ../${SWIG_OUTPUT_CPP_FILE} -outdir ../src/tf -I../build/include -module ${PROJECT_NAME}_swig ${SWIG_INTERFACE_FILE})
+endif("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER 2.4)
+
+set_source_files_properties(${SWIG_OUTPUT_CPP_FILE} PROPERTIES GENERATED true)
+add_custom_command(OUTPUT ${SWIG_OUTPUT_CPP_FILE}
+ ${SWIG_OUTPUT_PYTHON_FILE}
+ COMMAND ${SWIG_COMMAND}
+ DEPENDS ${SWIG_INTERFACE_FILE}
+ swig/tf/tf_swig.h)
+
+# We add src/wx_rosout to the include list so that
+# ogre_tools_swig_generated.cpp can find its headers. This is part of a
+# workaround for a deficiency in CMake 2.4's handling of generated sources.
+#####include_directories(${PROJECT_SOURCE_DIR}/src/rxtools)
+# shared library (with SWIG)
+rospack_add_library(python_${PROJECT_NAME} ${SWIG_OUTPUT_CPP_FILE})
+target_link_libraries(python_${PROJECT_NAME} tf ${PYTHON_LIBRARIES})
+
+# swig python needs a shared library named _<modulename>.[so|dll|...]
+# this renames the output file to conform to that by prepending an underscore and removing the "lib" prefix
+set_target_properties(python_${PROJECT_NAME}
+ PROPERTIES OUTPUT_NAME _${PROJECT_NAME}_swig
+ PREFIX "")
+
+
+# Tests for swig
+rospack_add_pyunit_future(test/test_datatype_conversion.py)
+
Deleted: pkg/trunk/stacks/geometery/tf/reset_time.py
===================================================================
--- pkg/trunk/common/tf/reset_time.py 2009-06-23 20:22:25 UTC (rev 17533)
+++ pkg/trunk/stacks/geometery/tf/reset_time.py 2009-06-23 21:15:17 UTC (rev 17546)
@@ -1,53 +0,0 @@
-#!/usr/bin/env python
-# Software License Agreement (BSD License)
-#
-# Copyright (c) 2008, Willow Garage, Inc.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following
-# disclaimer in the documentation and/or other materials provided
-# with the distribution.
-# * Neither the name of Willow Garage, Inc. nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-
-## Reset time
-
-import roslib; roslib.load_manifest('rospy_tutorials')
-
-import rospy
-from std_msgs.msg import Empty
-import time
-
-def reset_time():
- pub = rospy.Publisher('/reset_time', Empty)
- rospy.init_node('reset_time', anonymous=True)
- print "Resetting time"
- time.sleep(1)
- pub.publish(Empty())
-
-
-if __name__ == '__main__':
- reset_time()
Deleted: pkg/trunk/stacks/geometery/tf/simpletest.cpp
===================================================================
--- pkg/trunk/common/tf/simpletest.cpp 2009-06-23 20:22:25 UTC (rev 17533)
+++ pkg/trunk/stacks/geometery/tf/simpletest.cpp 2009-06-23 21:15:17 UTC (rev 17546)
@@ -1,33 +0,0 @@
-#include "LinearMath/btQuaternion.h"
-#include "LinearMath/btTransform.h"
-
-#include <sys/time.h>
-#include <iostream>
-#include "tf/time_cache.h"
-#include "tf/tf.h"
-
-using namespace std;
-
-int main(void)
-{
- btQuaternion quat;
- quat.setEuler(0,1,1);
- cout << quat.x() << std::endl << quat.y() << std::endl << quat.z() << std::endl << quat.w() << std::endl;
- quat.setEuler(0,1,0);
- cout << quat.x() << std::endl << quat.y() << std::endl << quat.z() << std::endl << quat.w() << std::endl;
- quat.setEuler(0,0,1);
- cout << quat.x() << std::endl << quat.y() << std::endl << quat.z() << std::endl << quat.w() << std::endl;
- quat.setEuler(0,1,2);
- cout << quat.x() << std::endl << quat.y() << std::endl << quat.z() << std::endl << quat.w() << std::endl;
-
-
- btTransform tran(quat, btVector3(btScalar(1), btScalar(1), btScalar(1)));
-
- std::cout << sizeof(btScalar)<<std::endl;
-
- tf::TimeCache myCache;
-
- tf::Transformer myTR;
-
-return 0;
-};
Deleted: pkg/trunk/stacks/geometery/tf/viewFrames.py
===================================================================
--- pkg/trunk/common/tf/viewFrames.py 2009-06-23 20:22:25 UTC (rev 17533)
+++ pkg/trunk/stacks/geometery/tf/viewFrames.py 2009-06-23 21:15:17 UTC (rev 17546)
@@ -1,130 +0,0 @@
-#!/usr/bin/env python
-# Software License Agreement (BSD License)
-#
-# Copyright (c) 2008, Willow Garage, Inc.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following
-# disclaimer in the documentation and/or other materials provided
-# with the distribution.
-# * Neither the name of the Willow Garage nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-# Revision $Id: gossipbot.py 1013 2008-05-21 01:08:56Z sfkwc $
-
-## Simple demo of a rospy service client that calls a service to add
-## two integers.
-
-from __future__ import with_statement
-
-PKG = 'tf' # this package name
-
-import roslib; roslib.load_manifest(PKG)
-
-import sys, time
-import os
-import string
-import re
-import subprocess
-import distutils.version
-
-from optparse import OptionParser
-
-import rospy
-from tf.srv import *
-import tf
-
-def listen(duration):
- rospy.init_node("viewFrames.py", anonymous=True)
- tf_listener = tf.TransformListener()
- print "Listening to /tf_message for %f seconds"%duration
- time.sleep(duration)
- print "Done Listening"
- return tf_listener.all_frames_as_dot()
-
-
-def poll(node_name):
- print "Waiting for service %s/tf_frames"%node_name
- rospy.wait_for_service('%s/tf_frames'%node_name)
-
- try:
- print "Polling service"
- tf_frames_proxy = rospy.ServiceProxy('%s/tf_frames'%node_name, FrameGraph)
-
- output = tf_frames_proxy.call(FrameGraphRequest())
-
- except rospy.ServiceException, e:
- print "Service call failed: %s"%e
-
- return output.dot_graph
-
-def generate(dot_graph):
-
-
- with open('frames.gv', 'w') as outfile:
- outfile.write(dot_graph)
-
-
- try:
- # Check version, make postscript if too old to make pdf
- args = ["dot", "-V"]
- try:
- vstr = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[1]
- except OSError, ex:
- print "Warning: Could not execute `dot -V`. Is graphviz installed?"
- sys.exit(-1)
- v = distutils.version.StrictVersion('2.16')
- r = re.compile(".*version ([^ ]*).*")
- print vstr
- m = r.search(vstr)
- if not m or not m.group(1):
- print 'Warning: failed to determine your version of dot. Assuming v2.16'
- else:
- version = distutils.version.StrictVersion(m.group(1))
- print 'Detected dot version %s' % (version)
- if version > distutils.version.StrictVersion('2.8'):
- subprocess.check_call(["dot", "-Tpdf", "frames.gv", "-o", "frames.pdf"])
- print "frames.pdf generated"
- else:
- subprocess.check_call(["dot", "-Tps2", "frames.gv", "-o", "frames.ps"])
- print "frames.ps generated"
- except subprocess.CalledProcessError:
- print >> sys.stderr, "failed to generate frames.pdf"
-
-
-if __name__ == '__main__':
- parser = OptionParser(usage="usage: %prog [options]", prog='viewFrames.py')
- parser.add_option("--node", metavar="node name",
- type="string", help="Node to get frames from",
- dest="node")
- options, args = parser.parse_args()
-
- dot_graph = ''
- if not options.node:
- dot_graph = listen(5.0)
- else:
- print "hi", options.node
- dot_graph = poll(options.node)
-
- generate(dot_graph)
Property changes on: pkg/trunk/stacks/geometery/tf_conversions
___________________________________________________________________
Added: svn:mergeinfo
+ /pkg/branches/gazebo-branch-merge/util/tf_conversions:15683-15684,15739-15794,15797-15820,15822-15839,15852-15870,15983-16008,16010-16016,16129-16141,16145-16169,16245-16262,16274-16334
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|