File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -50,23 +50,21 @@ void LatticeMotionTable::initMotionModel(
50
50
unsigned int & size_x_in,
51
51
SearchInfo & search_info)
52
52
{
53
- size_x = size_x_in;
54
-
55
- if (current_lattice_filepath == search_info.lattice_filepath ) {
56
- return ;
57
- }
58
-
59
53
size_x = size_x_in;
60
54
change_penalty = search_info.change_penalty ;
61
55
non_straight_penalty = search_info.non_straight_penalty ;
62
56
cost_penalty = search_info.cost_penalty ;
63
57
reverse_penalty = search_info.reverse_penalty ;
64
58
travel_distance_reward = 1 .0f - search_info.retrospective_penalty ;
65
- current_lattice_filepath = search_info.lattice_filepath ;
66
59
allow_reverse_expansion = search_info.allow_reverse_expansion ;
67
60
rotation_penalty = search_info.rotation_penalty ;
68
61
min_turning_radius = search_info.minimum_turning_radius ;
69
62
63
+ if (current_lattice_filepath == search_info.lattice_filepath ) {
64
+ return ;
65
+ }
66
+ current_lattice_filepath = search_info.lattice_filepath ;
67
+
70
68
// Get the metadata about this minimum control set
71
69
lattice_metadata = getLatticeMetadata (current_lattice_filepath);
72
70
std::ifstream latticeFile (current_lattice_filepath);
You can’t perform that action at this time.
0 commit comments