Closed Rian-Jo closed 6 months ago
Hi, happy new year.
First of all, I'm the fan of your works. Thank you.
In my computer, i cloned the repository and compiled. Then, when i build, i got the error message for
[build] /mujocompc/mjpc/agent.cc:555:14: error: no match for ‘operator=’ (operand types are ‘mjuiDef’ {aka ‘mjuiDef’} and ‘’) [build] 555 | "0 1"};
and other codes using mjuiDef types.
So i changed from
''' defFeatureParameters[i + parameter_shift] = { mjITEM_SLIDERNUM, "residual", 2, DataAt(ActiveTask()->parameters, i), "0 1" }; '''
to
''' defFeatureParameters[i + parameter_shift] = mjuiDef{ mjITEM_SLIDERNUM, "residual", 2, DataAt(ActiveTask()->parameters, i), "0 1" }; '''
for all cases and worked properly.
Is it correct fix?
What operating system and compiler are you using? I don't see this issue on macOS using clang 14.
i am using gcc 9.4.0 on Ubuntu 20.04
Try building with clang. You can find additional specifics here.
I was inteded to use gcc..
ok i'll check. thanks for help!!
Hi, happy new year.
First of all, I'm the fan of your works. Thank you.
In my computer, i cloned the repository and compiled. Then, when i build, i got the error message for
[build] /mujocompc/mjpc/agent.cc:555:14: error: no match for ‘operator=’ (operand types are ‘mjuiDef’ {aka ‘mjuiDef’} and ‘’)
[build] 555 | "0 1"};
and other codes using mjuiDef types.
So i changed from
''' defFeatureParameters[i + parameter_shift] = { mjITEM_SLIDERNUM, "residual", 2, DataAt(ActiveTask()->parameters, i), "0 1" }; '''
to
''' defFeatureParameters[i + parameter_shift] = mjuiDef{ mjITEM_SLIDERNUM, "residual", 2, DataAt(ActiveTask()->parameters, i), "0 1" }; '''
for all cases and worked properly.
Is it correct fix?