Namespaces | Functions | Variables
rosbagtocsv.py File Reference

Go to the source code of this file.

Namespaces

namespace  rosbagtocsv

Functions

def rosbagtocsv.read_file

Variables

list rosbagtocsv.arm_joint_names
tuple rosbagtocsv.effort = map( lambda x: js.effort[x], idx )
tuple rosbagtocsv.idx = map( joint_states[0].name.index, joint_names )
list rosbagtocsv.in_fname = sys.argv[1]
list rosbagtocsv.joint_names = []
tuple rosbagtocsv.joint_states = read_file( in_fname, '/joint_states' )
tuple rosbagtocsv.l_arm_joint_names = map(lambda s: s.replace('lr_', 'l_'), arm_joint_names )
list rosbagtocsv.last_time = joint_states[0]
list rosbagtocsv.out_fname = sys.argv[2]
tuple rosbagtocsv.pos = map( lambda x: js.position[x], idx )
tuple rosbagtocsv.r_arm_joint_names = map(lambda s: s.replace('lr_', 'r_'), arm_joint_names )
tuple rosbagtocsv.row = sum( [[time], pos, vel, effort], [] )
tuple rosbagtocsv.time = (js.header.stamp - last_time)
tuple rosbagtocsv.vel = map( lambda x: js.velocity[x], idx )
tuple rosbagtocsv.writer = csv.writer( open( out_fname, 'wb' ), delimiter = ',', quotechar = '|' )


kelsey_sandbox
Author(s): kelsey
autogenerated on Wed Nov 27 2013 11:52:04