Skip to content

Commit

Permalink
fix(autoware_bytetrack): fix constParameter
Browse files Browse the repository at this point in the history
Signed-off-by: Ryuta Kambe <[email protected]>
  • Loading branch information
veqcc committed Nov 19, 2024
1 parent 5778e01 commit 2cfd7d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion perception/autoware_bytetrack/lib/include/lapjv.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,6 @@ typedef double cost_t;
typedef char boolean;
typedef enum fp_t { FP_1 = 1, FP_2 = 2, FP_DYNAMIC = 3 } fp_t;

extern int_t lapjv_internal(const uint_t n, cost_t * cost[], int_t * x, int_t * y);
extern int_t lapjv_internal(const uint_t n, const cost_t * cost[], int_t * x, int_t * y);

#endif // LAPJV_H_
12 changes: 6 additions & 6 deletions perception/autoware_bytetrack/lib/src/lapjv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
/** Column-reduction and reduction transfer for a dense cost matrix.
*/
int_t _ccrrt_dense(
const uint_t n, cost_t * cost[], int_t * free_rows, int_t * x, int_t * y, cost_t * v)
const uint_t n, const cost_t * cost[], int_t * free_rows, int_t * x, int_t * y, cost_t * v)
{
int_t n_free_rows;
boolean * unique;
Expand Down Expand Up @@ -109,7 +109,7 @@ int_t _ccrrt_dense(
/** Augmenting row reduction for a dense cost matrix.
*/
int_t _carr_dense(
const uint_t n, cost_t * cost[], const uint_t n_free_rows, int_t * free_rows, int_t * x,
const uint_t n, const cost_t * cost[], const uint_t n_free_rows, int_t * free_rows, int_t * x,
int_t * y, cost_t * v)
{
uint_t current = 0;
Expand Down Expand Up @@ -203,7 +203,7 @@ uint_t _find_dense(
// Scan all columns in TODO starting from arbitrary column in SCAN
// and try to decrease d of the TODO columns using the SCAN column.
int_t _scan_dense(
const uint_t n, cost_t * cost[], uint_t * plo, uint_t * phi, cost_t * d, int_t * cols,
const uint_t n, const cost_t * cost[], uint_t * plo, uint_t * phi, cost_t * d, int_t * cols,
int_t * pred, const int_t * y, const cost_t * v)
{
uint_t lo = *plo;
Expand Down Expand Up @@ -245,7 +245,7 @@ int_t _scan_dense(
* \return The closest free column index.
*/
int_t find_path_dense(
const uint_t n, cost_t * cost[], const int_t start_i, int_t * y, cost_t * v, int_t * pred)
const uint_t n, const cost_t * cost[], const int_t start_i, int_t * y, cost_t * v, int_t * pred)
{
uint_t lo = 0, hi = 0;
int_t final_j = -1;
Expand Down Expand Up @@ -305,7 +305,7 @@ int_t find_path_dense(
/** Augment for a dense cost matrix.
*/
int_t _ca_dense(
const uint_t n, cost_t * cost[], const uint_t n_free_rows, int_t * free_rows, int_t * x,
const uint_t n, const cost_t * cost[], const uint_t n_free_rows, int_t * free_rows, int_t * x,
int_t * y, cost_t * v)
{
int_t * pred;
Expand Down Expand Up @@ -340,7 +340,7 @@ int_t _ca_dense(

/** Solve dense sparse LAP.
*/
int lapjv_internal(const uint_t n, cost_t * cost[], int_t * x, int_t * y)
int lapjv_internal(const uint_t n, const cost_t * cost[], int_t * x, int_t * y)
{
int ret;
int_t * free_rows;
Expand Down

0 comments on commit 2cfd7d5

Please sign in to comment.