You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i tried to assign the value for the structure in the proto. and i used the 'add_' method and 'writer' method in mcap lib.
it surely generated the *.mcap file. but it's very strange in foxglove software. SSI_MvVisionLaneMkr_Msg_0’s menber has the value in SSI_MvVisionLaneMkr_Msg_1's. and SSI_MvVisionLaneMkr_Msg_1's member has the value in SSI_MvVisionLaneMkr_Msg_0.
it seems they shared the same memery address.
so i debuged the process. The first cycle, SSI_MvVisionLaneMkr_Msg_0's address is 0x55555594ed40, SSI_MvVisionLaneMkr_Msg_1's address is 0x55555594ec90. the next cycle, they just exhacnged the address, and the following cycles, they did this again and agian.
it is my code below.
MvPlanningOutputInfoProto_namespace:: SSI_MvVisionLaneMkr_Bus* SSI_MvVisionLaneMkr_Msg_0 = SSI_MvVisPercpLaneInfo_Msg->add_ssi_vis_host_line();
// assign value for the menber in the struct called SSI_MvVisionLaneMkr_Bus
...
MvPlanningOutputInfoProto_namespace:: SSI_MvVisionLaneMkr_Bus* SSI_MvVisionLaneMkr_Msg_1 = SSI_MvVisPercpLaneInfo_Msg->add_ssi_vis_host_line();
// assign value for the menber in the struct called SSI_MvVisionLaneMkr_Bus
..
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i tried to assign the value for the structure in the proto. and i used the 'add_' method and 'writer' method in mcap lib.
it surely generated the *.mcap file. but it's very strange in foxglove software. SSI_MvVisionLaneMkr_Msg_0’s menber has the value in SSI_MvVisionLaneMkr_Msg_1's. and SSI_MvVisionLaneMkr_Msg_1's member has the value in SSI_MvVisionLaneMkr_Msg_0.
it seems they shared the same memery address.
so i debuged the process. The first cycle, SSI_MvVisionLaneMkr_Msg_0's address is 0x55555594ed40, SSI_MvVisionLaneMkr_Msg_1's address is 0x55555594ec90. the next cycle, they just exhacnged the address, and the following cycles, they did this again and agian.
it is my code below.
MvPlanningOutputInfoProto_namespace:: SSI_MvVisionLaneMkr_Bus* SSI_MvVisionLaneMkr_Msg_0 = SSI_MvVisPercpLaneInfo_Msg->add_ssi_vis_host_line();
// assign value for the menber in the struct called SSI_MvVisionLaneMkr_Bus
...
MvPlanningOutputInfoProto_namespace:: SSI_MvVisionLaneMkr_Bus* SSI_MvVisionLaneMkr_Msg_1 = SSI_MvVisPercpLaneInfo_Msg->add_ssi_vis_host_line();
// assign value for the menber in the struct called SSI_MvVisionLaneMkr_Bus
..
Beta Was this translation helpful? Give feedback.
All reactions