Skip to content

Commit 2b7c2c6

Browse files
Removed unnessecary data channels in the ros2csv converter
1 parent dfcb2ae commit 2b7c2c6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

adma_tools/adma_tools_py/adma_tools_py/ros2csv_converter.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ def msg_cb(self, admaMsg : AdmaDataScaled, ewMsg : AdmaStatus):
2323
file = open(self.filename,"a")
2424

2525
file.write("\n")
26-
file.write(f"{admaMsg.genesys_id}, {admaMsg.header_version}, {admaMsg.format_id}, {admaMsg.format_version},{admaMsg.serial_number}, {admaMsg.alias},\
27-
{admaMsg.config_id}, {admaMsg.config_format}, {admaMsg.config_version}, {admaMsg.config_size},{admaMsg.byte_offset}, {admaMsg.slice_size}, {admaMsg.slice_data},\
26+
file.write(f"{admaMsg.serial_number},\
2827
{admaMsg.acc_body_hr.x}, {admaMsg.acc_body_hr.y}, {admaMsg.acc_body_hr.z},\
2928
{admaMsg.rate_body_hr.x}, {admaMsg.rate_body_hr.y}, {admaMsg.rate_body_hr.z},\
3029
{admaMsg.rate_body.x}, {admaMsg.rate_body.y}, {admaMsg.rate_body.z},\
@@ -118,8 +117,7 @@ def msg_cb(self, admaMsg : AdmaDataScaled, ewMsg : AdmaStatus):
118117
else:
119118
#define headers
120119
file = open(self.filename,"w")
121-
file.write(f"genesys_id, header_version, format_id, format_version, serial_number, alias,\
122-
config_id, config_format, config_version, config_size, byte_offset, slice_size, slice_data,\
120+
file.write(f"serial_number,\
123121
Acc_Body_HR_X, Acc_Body_HR_Y, Acc_Body_HR_Z,\
124122
Rate_Body_HR_X, Rate_Body_HR_Y, Rate_Body_HR_Z,\
125123
Rate_Body_X, Rate_Body_Y, Rate_Body_Z,\

0 commit comments

Comments
 (0)