File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed 
include/nav2_mppi_controller Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ class AckermannMotionModel : public MotionModel
211211  {
212212    const  auto  vx_ptr = control_sequence.vx .data ();
213213    auto  wz_ptr = control_sequence.wz .data ();
214-     int  steps = control_sequence.vx .size ();
214+     int  steps = 2 ; // control_sequence.vx.size();
215215    for (int  i = 0 ; i < steps; i++) {
216216      float  wz_constrained = fabs (*(vx_ptr + i) / min_turning_r_);
217217      float  & wz_curr = *(wz_ptr + i);
Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ void Optimizer::applyControlSequenceConstraints()
373373    vy_last = static_cast <float >(state_.speed .linear .y );
374374  }
375375
376-   for  (unsigned  int  i = 0 ; i != control_sequence_. vx . size () ; i++) {
376+   for  (unsigned  int  i = 0 ; i <  2 ; i++) {
377377    float  & vx_curr = control_sequence_.vx (i);
378378    vx_curr = utils::clamp (s.constraints .vx_min , s.constraints .vx_max , vx_curr);
379379    if (vx_last > 0 ) {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments