Commit 7795973 1 parent 05f5d15 commit 7795973 Copy full SHA for 7795973
File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"asset_name" : " Athrill" ,
3
+ "robo_name" : " Robot1" ,
3
4
"target_exec_dir" : " src/proxy" ,
4
5
"target_bin_path" : " ./sample-proc.bash" ,
5
6
"target_options" : [
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ using namespace hako::client::proxy;
18
18
19
19
typedef struct {
20
20
std::string asset_name_str;
21
+ std::string robo_name_str;
21
22
json param;
22
23
ProcessManager process;
23
24
std::shared_ptr<hako::IHakoSimulationEventController> hako_sim_ctrl;
@@ -104,6 +105,7 @@ static void stop_callback()
104
105
static int hako_init ()
105
106
{
106
107
ctrl.asset_name_str = ctrl.param [" asset_name" ];
108
+ ctrl.robo_name_str = ctrl.param [" robo_name" ];
107
109
// hako::logger::init("core");
108
110
// hako::logger::init(ctrl.asset_name_str);
109
111
// hako::logger::get(ctrl.asset_name_str)->info("asset_name={0}", ctrl.asset_name_str);
@@ -125,7 +127,7 @@ static int hako_init()
125
127
for (unsigned int i = 0 ; i < ctrl.param [" target_channels" ].size (); i++) {
126
128
std::cout << " target_channels: " << i << " target_channels: " << ctrl.param [" target_channels" ][i].at (" size" ) << std::endl;
127
129
bool err = ctrl.hako_asset ->create_pdu_lchannel (
128
- ctrl.asset_name_str ,
130
+ ctrl.robo_name_str ,
129
131
ctrl.param [" target_channels" ][i].at (" channel_id" ),
130
132
ctrl.param [" target_channels" ][i].at (" size" )
131
133
);
You can’t perform that action at this time.
0 commit comments