Skip to content

Commit

Permalink
mpc consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
PioneerSam committed Oct 31, 2024
1 parent 2ce04fd commit bb038a9
Show file tree
Hide file tree
Showing 7 changed files with 4,825 additions and 4,826 deletions.
4 changes: 2 additions & 2 deletions config/ouster_warthog_default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
#- lidar.obstacle_detection
#- lidar.terrain_assessment

robot_frame: base_link
robot_frame: w200_0066_base_link
env_info_topic: env_info
lidar_frame: os_lidar
lidar_frame: w200_0066_os_lidar
lidar_topic: /ouster/points
queue_size: 1
graph_map:
Expand Down
1 change: 1 addition & 0 deletions launch/online_navtech_warthog.launch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ session_name: vtr_online_navtech_warthog
environment:
# CYCLONEDDS_URI: ${VTRSRC}/config/cyclonedds.default.xml # custom dds configs
ROS_DOMAIN_ID: "7" # set this to a unique number when multiple ROS2 dependent system running on the same network
ROS_DISCOVERY_SERVER: "192.168.131.1:11811;192.168.131.100:11811;127.0.0.1:11811"

start_directory: ${VTRTEMP}
suppress_history: false
Expand Down
3 changes: 2 additions & 1 deletion launch/online_ouster_warthog.launch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
session_name: vtr_online_ouster_warthog

environment:
ROS_DOMAIN_ID: "131" # set this to a unique number when multiple ROS2 dependent system running on the same network
ROS_DOMAIN_ID: "7" # set this to a unique number when multiple ROS2 dependent system running on the same network
ROS_DISCOVERY_SERVER: "192.168.131.1:11811;192.168.131.100:11811"

start_directory: ${VTRTEMP}
suppress_history: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class CasadiUnicycleMPC {
// TODO add an automatic way to keep the code in sync
static constexpr int nStates = 3;
static constexpr int nControl = 2;
static constexpr double alpha = 0.2; // lidar default 0.4
static constexpr double alpha = 0.4; // lidar default 0.4
static constexpr int N = 15;
static constexpr double DT = 0.25;
DM previous_vel{nControl, 1};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,4 @@ extern "C" int nlp_jac_g_work_bytes(casadi_int *sz_arg, casadi_int* sz_res, casa
#define nlp_jac_g_SZ_ARG 2
#define nlp_jac_g_SZ_RES 2
#define nlp_jac_g_SZ_IW 0
#define nlp_jac_g_SZ_W 370
#define nlp_jac_g_SZ_W 369
2 changes: 1 addition & 1 deletion main/src/vtr_path_planning/scripts/unicycle_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
N = 15 # number of look ahead steps

# The first order lag weighting for the angular velocity
alpha = 0.2
alpha = 0.4

# state symbolic variables
x = ca.SX.sym('x')
Expand Down
Loading

0 comments on commit bb038a9

Please sign in to comment.