@@ -286,8 +286,8 @@ void Optimizer::integrateStateVelocities(
286286
287287 const auto yaw_offseted = xt::view (traj_yaws, xt::range (1 , _));
288288
289- xt::noalias (xt::view (yaw_cos, 0 )) = std::cos (initial_yaw);
290- xt::noalias (xt::view (yaw_sin, 0 )) = std::sin (initial_yaw);
289+ xt::noalias (xt::view (yaw_cos, 0 )) = cosf (initial_yaw);
290+ xt::noalias (xt::view (yaw_sin, 0 )) = sinf (initial_yaw);
291291 xt::noalias (xt::view (yaw_cos, xt::range (1 , _))) = xt::cos (yaw_offseted);
292292 xt::noalias (xt::view (yaw_sin, xt::range (1 , _))) = xt::sin (yaw_offseted);
293293
@@ -316,8 +316,8 @@ void Optimizer::integrateStateVelocities(
316316
317317 auto && yaw_cos = xt::xtensor<float , 2 >::from_shape (trajectories.yaws .shape ());
318318 auto && yaw_sin = xt::xtensor<float , 2 >::from_shape (trajectories.yaws .shape ());
319- xt::noalias (xt::view (yaw_cos, xt::all (), 0 )) = std::cos (initial_yaw);
320- xt::noalias (xt::view (yaw_sin, xt::all (), 0 )) = std::sin (initial_yaw);
319+ xt::noalias (xt::view (yaw_cos, xt::all (), 0 )) = cosf (initial_yaw);
320+ xt::noalias (xt::view (yaw_sin, xt::all (), 0 )) = sinf (initial_yaw);
321321 xt::noalias (xt::view (yaw_cos, xt::all (), xt::range (1 , _))) = xt::cos (yaws_cutted);
322322 xt::noalias (xt::view (yaw_sin, xt::all (), xt::range (1 , _))) = xt::sin (yaws_cutted);
323323
@@ -358,16 +358,16 @@ void Optimizer::updateControlSequence()
358358 auto bounded_noises_vx = state_.cvx - control_sequence_.vx ;
359359 auto bounded_noises_wz = state_.cwz - control_sequence_.wz ;
360360 xt::noalias (costs_) +=
361- s.gamma / std::pow (s.sampling_std .vx , 2 ) * xt::sum (
361+ s.gamma / powf (s.sampling_std .vx , 2 ) * xt::sum (
362362 xt::view (control_sequence_.vx , xt::newaxis (), xt::all ()) * bounded_noises_vx, 1 , immediate);
363363 xt::noalias (costs_) +=
364- s.gamma / std::pow (s.sampling_std .wz , 2 ) * xt::sum (
364+ s.gamma / powf (s.sampling_std .wz , 2 ) * xt::sum (
365365 xt::view (control_sequence_.wz , xt::newaxis (), xt::all ()) * bounded_noises_wz, 1 , immediate);
366366
367367 if (isHolonomic ()) {
368368 auto bounded_noises_vy = state_.cvy - control_sequence_.vy ;
369369 xt::noalias (costs_) +=
370- s.gamma / std::pow (s.sampling_std .vy , 2 ) * xt::sum (
370+ s.gamma / powf (s.sampling_std .vy , 2 ) * xt::sum (
371371 xt::view (control_sequence_.vy , xt::newaxis (), xt::all ()) * bounded_noises_vy,
372372 1 , immediate);
373373 }
0 commit comments