Irregularity in VC generated csv files


#1

Not sure if this is a little bug so I report it here:

if I save joint data to csv using the virtual coach on my local install I get:

where the second line is unexpected (for me) and interferes with my post-processing. This does not happen if I launch the same experiment via the browser frontend.

The transfer function used is:

@nrp.MapRobotSubscriber("joint_state", Topic('/joint_states', sensor_msgs.msg.JointState))
@nrp.MapCSVRecorder("recorder", filename="all_joints_positions.csv", headers=["Name", "time", "Position"])

@nrp.Robot2Neuron()
def csv_joint_state_monitor(t, joint_state, recorder):
    #recorder.record_entry(0, 1, 2)
    #clientLogger.info(str(t))
    if not isinstance(joint_state.value, type(None)):
        for i in range(0, len(joint_state.value.name)):
            recorder.record_entry(joint_state.value.name[i], t, joint_state.value.position[i])

Not a major issue but I thought I’ll report it anyway : -)

Cheers,

Alexander


#2

Hi Alexander,

Thanks for the feedback, feel free to let us know if you run into anything in the future. There’s a Bitbucket bug tracker that you can file issues to: https://bitbucket.org/hbpneurorobotics/neurorobotics-platform/issues?status=new&status=open

I actually just put up a patch for code review for this issue yesterday. It should be in the master repo sometime next week. Sorry I know that’s annoying :grinning:

Best,
Kenny