change participant name to SafeDDS_Intel_Realsense_PoC + add compile …#48
change participant name to SafeDDS_Intel_Realsense_PoC + add compile …#48ynahum wants to merge 6 commits intomaloel:POCfrom
Conversation
…time flags for bypassing h2e/e2h pub/sub and bypass time sync code + debug prints
tools/dds/poc/h/poc-h.cpp
Outdated
| } | ||
| } | ||
|
|
||
| LOG_DEBUG( "domain id: " << domain); |
There was a problem hiding this comment.
This is already output when the participant comes online...
…ral reader to be RELIABLE, and stream to be BEST_EFFORT
| TCLAP::CmdLine cmd( "POC host computer", ' ' ); | ||
| TCLAP::SwitchArg debug_arg( "", "debug", "Enable debug logging", false ); | ||
| TCLAP::ValueArg< realdds::dds_domain_id > domain_arg( "d", "domain", "select domain ID to listen on", false, 0, "0-232" ); | ||
| TCLAP::SwitchArg op_pub_sub_arg( "o", "op-pub-sub", "create op pub and sub", false ); |
There was a problem hiding this comment.
Isn't it automatically false if the time-sync is 0?
There was a problem hiding this comment.
right. will not read/use time sync if no pub/sub
There was a problem hiding this comment.
What I meant is that it's not needed -- just set the time-sync to 0 and e2h and h2e aren't needed any more...
There was a problem hiding this comment.
I left it as if we need them for other usages
tools/dds/poc/h/poc-h.cpp
Outdated
| } | ||
|
|
||
| bool time_sync_enabled = false; | ||
| int time_sync_num_of_iterations = 0; |
There was a problem hiding this comment.
The above says the default is 10... this is confusing.
tools/dds/poc/h/poc-h.cpp
Outdated
| auto participant = std::make_shared< realdds::dds_participant >(); | ||
| participant->init( domain, "poc-h" ); | ||
| LOG_DEBUG( "init participant"); | ||
| participant->init( domain, "SafeDDS_Intel_Realsense_PoC" ); |
There was a problem hiding this comment.
Participant name should be name of participant and should be distinctive. In this case, it shouldn't be the same as the embedded side.
tools/dds/poc/h/poc-h.cpp
Outdated
| LOG_DEBUG( "init participant"); | ||
| participant->init( domain, "SafeDDS_Intel_Realsense_PoC" ); | ||
| LOG_INFO( "init participant"); | ||
| participant->init( domain, "POC_domain" ); |
| auto t0_ = realdds::now().to_ns(); | ||
| h2e.write( poc::op_payload::SYNC, i, t0_ ); | ||
| auto data = e2h.read( std::chrono::seconds( 3 ) ); | ||
| auto data = e2h.read( std::chrono::seconds( 300 ) ); |
…time flags for bypassing h2e/e2h pub/sub and bypass time sync code + debug prints