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