File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ bool IgnitionSystem::initSim(
254
254
this ->dataPtr ->ecm ->Component <ignition::gazebo::components::JointAxis>(
255
255
this ->dataPtr ->joints_ [j].sim_joint );
256
256
257
- double use_cascade_control =
257
+ bool use_cascade_control =
258
258
(hardware_info.joints [j].parameters .find (" use_cascade_control" ) ==
259
259
hardware_info.joints [j].parameters .end () ) ? false : [&](){
260
260
if (hardware_info.joints [j].parameters .at (
@@ -266,7 +266,7 @@ bool IgnitionSystem::initSim(
266
266
}
267
267
}();
268
268
269
- param_vec.push_back (rclcpp::Parameter{" mode." + joint_name + " .use_cascade_control" , p_gain_pos });
269
+ param_vec.push_back (rclcpp::Parameter{" mode." + joint_name + " .use_cascade_control" , use_cascade_control });
270
270
271
271
272
272
double upper = jointAxis->Data ().Upper ();
You can’t perform that action at this time.
0 commit comments