Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about how to use arena-rosnav with AIO #45

Open
doyeon-danny opened this issue Mar 29, 2023 · 13 comments
Open

Question about how to use arena-rosnav with AIO #45

doyeon-danny opened this issue Mar 29, 2023 · 13 comments

Comments

@doyeon-danny
Copy link

doyeon-danny commented Mar 29, 2023

Hi @ReykCS .

I want to use All-In-One DRL planner in Arena-rosnav environment, but I got some problems.

I think Arena-rosnav doesn't include AIO package, so I found different guide and added AIO package in .rosinstall file.
And it didn't have arena-bench as well.
After installing AIO package, I launched start_arena.launch file with AIO local planner, but it didn't work.
Just launching default start_arena.launch worked.
I am trying it in my docker environment with Ubuntu 20.04 and Noetic ROS version.

I want to set up your environment to test and compare new planning algorthms.
Can you give me some tips how to set up your environment?

Thank you.

@Jacenty00
Copy link
Contributor

HI @doyeon-danny

You are right, arena-rosnav does not include aio package atm, but the way you downloaded it is completely fine.
AIO does not require any additional dependencies to be installed, so after installing, i.e. downloading and running catkin_make it should already be working.

Could you let me know the exact command you used to launch aio ? Also, you should be seeing some error messages in your terminal while launching, please send a screenshot as well if you notice any of them.

@doyeon-danny
Copy link
Author

doyeon-danny commented Apr 5, 2023

Hi @Jacenty00, I recently tried to install it on new Docker container, but I failed.

So I will show the result after launching start_arena launch file and command.

1. start_arena.launch with aio
roslaunch arena_bringup start_arena.launch local_planner:=aio
image
I only changed local planner with default world and robot didn't move.
and error code is like this:
[ WARN] [1680661493.346662684, 34.000000340]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds [ WARN] [1680661493.444381386, 34.100000341]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds [ WARN] [1680661493.544287495, 34.200000342]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds [ WARN] [1680661493.544896068, 34.200000342]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds [ WARN] [1680661493.644408503, 34.300000343]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds [ WARN] [1680661493.645076377, 34.300000343]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds [ WARN] [1680661493.744868401, 34.400000344]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds [ WARN] [1680661493.844098543, 34.500000345]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds [ WARN] [1680661493.844650606, 34.500000345]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds [ WARN] [1680661493.944104096, 34.600000346]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds

  1. default start_arena.launch
    roslaunch arena_bringup start_arena.launch
    image
    I didn't change any world or scenarios, and robot went to the goal point but slowly.

I am wondering if I am doing right following the instruction.
I hope you check my mistakes, thank you.

@doyeon-danny
Copy link
Author

Detailed shell codes are here.
I find that it happened related to Cuda.

SUMMARY
========

PARAMETERS
 * /burger_0_0/actions/continuous/angular_range: [-2.84, 2.84]
 * /burger_0_0/actions/continuous/linear_range: [-0.22, 0.22]
 * /burger_0_0/actions/discrete: [{'name': 'move_f...
 * /burger_0_0/is_holonomic: False
 * /burger_0_0/laser/angle/increment: 0.01745330492
 * /burger_0_0/laser/angle/max: 6.28318977356
 * /burger_0_0/laser/angle/min: 0
 * /burger_0_0/laser/num_beams: 360
 * /burger_0_0/laser/range: 3.5
 * /burger_0_0/laser/update_rate: 10
 * /burger_0_0/light_scan_sim/angle/increment: 0.01750190893
 * /burger_0_0/light_scan_sim/angle/max: 6.28318977355957
 * /burger_0_0/light_scan_sim/angle/min: 0
 * /burger_0_0/light_scan_sim/laser/frame: base_scan
 * /burger_0_0/light_scan_sim/laser/hz: 20
 * /burger_0_0/light_scan_sim/laser/noise: 0.0
 * /burger_0_0/light_scan_sim/laser/topic: static_scan
 * /burger_0_0/light_scan_sim/range/max: 3.5
 * /burger_0_0/light_scan_sim/range/min: 0.12
 * /burger_0_0/local_planner: aio
 * /burger_0_0/model: burger
 * /burger_0_0/move_base/global_costmap/circumscribed_radius: 0.113
 * /burger_0_0/move_base/global_costmap/cost_scaling_factor: 3.0
 * /burger_0_0/move_base/global_costmap/footprint: [[-0.105, -0.105]...
 * /burger_0_0/move_base/global_costmap/global_frame: map
 * /burger_0_0/move_base/global_costmap/inflation_radius: 0.4
 * /burger_0_0/move_base/global_costmap/inscribed_radius: 0.113
 * /burger_0_0/move_base/global_costmap/map_type: costmap
 * /burger_0_0/move_base/global_costmap/observation_sources: scan
 * /burger_0_0/move_base/global_costmap/obstacle_range: 3.0
 * /burger_0_0/move_base/global_costmap/publish_frequency: 5.0
 * /burger_0_0/move_base/global_costmap/raytrace_range: 3.5
 * /burger_0_0/move_base/global_costmap/robot_base_frame: base_footprint
 * /burger_0_0/move_base/global_costmap/robot_radius: 0.113
 * /burger_0_0/move_base/global_costmap/scan/clearing: True
 * /burger_0_0/move_base/global_costmap/scan/data_type: LaserScan
 * /burger_0_0/move_base/global_costmap/scan/marking: True
 * /burger_0_0/move_base/global_costmap/scan/sensor_frame: base_scan
 * /burger_0_0/move_base/global_costmap/scan/topic: scan
 * /burger_0_0/move_base/global_costmap/static_map: True
 * /burger_0_0/move_base/global_costmap/transform_tolerance: 0.25
 * /burger_0_0/move_base/global_costmap/update_frequency: 5.0
 * /burger_0_0/move_base/local_costmap/circumscribed_radius: 0.113
 * /burger_0_0/move_base/local_costmap/cost_scaling_factor: 5.0
 * /burger_0_0/move_base/local_costmap/footprint: [[-0.113, -0.113]...
 * /burger_0_0/move_base/local_costmap/global_frame: odom
 * /burger_0_0/move_base/local_costmap/height: 3
 * /burger_0_0/move_base/local_costmap/inflation_radius: 0.75
 * /burger_0_0/move_base/local_costmap/inscribed_radius: 0.113
 * /burger_0_0/move_base/local_costmap/map_type: costmap
 * /burger_0_0/move_base/local_costmap/observation_sources: scan
 * /burger_0_0/move_base/local_costmap/obstacle_range: 3.0
 * /burger_0_0/move_base/local_costmap/publish_frequency: 5.0
 * /burger_0_0/move_base/local_costmap/raytrace_range: 3.5
 * /burger_0_0/move_base/local_costmap/resolution: 0.05
 * /burger_0_0/move_base/local_costmap/robot_base_frame: base_footprint
 * /burger_0_0/move_base/local_costmap/robot_radius: 0.113
 * /burger_0_0/move_base/local_costmap/rolling_window: True
 * /burger_0_0/move_base/local_costmap/scan/clearing: True
 * /burger_0_0/move_base/local_costmap/scan/data_type: LaserScan
 * /burger_0_0/move_base/local_costmap/scan/marking: True
 * /burger_0_0/move_base/local_costmap/scan/sensor_frame: base_scan
 * /burger_0_0/move_base/local_costmap/scan/topic: scan
 * /burger_0_0/move_base/local_costmap/static_map: False
 * /burger_0_0/move_base/local_costmap/transform_tolerance: 0.25
 * /burger_0_0/move_base/local_costmap/update_frequency: 5.0
 * /burger_0_0/move_base/local_costmap/width: 3
 * /burger_0_0/robot_base_frame: base_footprint
 * /burger_0_0/robot_model: burger
 * /burger_0_0/robot_name: burger
 * /burger_0_0/robot_radius: 0.113
 * /burger_0_0/robot_sensor_frame: base_scan
 * /model: burger
 * /rosdistro: noetic
 * /rosversion: 1.16.0

NODES
  /burger_0_0/
    all_in_one_planner (all_in_one_planner/all_in_one_node.py)
    light_scan_sim (light_scan_sim/light_scan_sim_node)
    map_image_broadcaster (tf2_ros/static_transform_publisher)
    move_base (move_base/move_base)
    transform_broadcaster (tf2_ros/static_transform_publisher)

ROS_MASTER_URI=http://localhost:11311
process[burger_0_0/transform_broadcaster-1]: started with pid [10517]
process[burger_0_0/move_base-2]: started with pid [10518]
process[burger_0_0/map_image_broadcaster-3]: started with pid [10519]
process[burger_0_0/light_scan_sim-4]: started with pid [10524]
process[burger_0_0/all_in_one_planner-5]: started with pid [10531]
[ INFO] [1680664930.721081491]: Setting laser frame to burger_0_0/base_scan
[ INFO] [1680664930.721476801]: Setting laser topic to /burger_0_0/static_scan
[ WARN] [1680664930.725349476]: LightScanSim: Update called, no map yet
[INFO] [1680664930.948173, 2.700000]: =============
[INFO] [1680664930.949085, 2.700000]: Task Reseted!
[INFO] [1680664930.949594, 2.700000]: =============
[ WARN] [1680664931.148559562, 2.900000029]: global_costmap: Parameter "plugins" not provided, loading pre-Hydro parameters
[ INFO] [1680664931.153849932, 2.900000029]: global_costmap: Using plugin "static_layer"
[ INFO] [1680664931.156226993, 2.900000029]: Requesting the map...
[ INFO] [1680664931.347550890, 3.100000031]: Resizing costmap to 626 X 481 at 0.050000 m/pix
[ INFO] [1680664931.448493490, 3.200000032]: Received a 626 X 481 map at 0.050000 m/pix
[ INFO] [1680664931.453403722, 3.200000032]: global_costmap: Using plugin "obstacle_layer"
[ INFO] [1680664931.454758422, 3.200000032]:     Subscribed to Topics: scan
[ INFO] [1680664931.460565535, 3.200000032]: global_costmap: Using plugin "inflation_layer"
[ WARN] [1680664931.472982495, 3.200000032]: local_costmap: Parameter "plugins" not provided, loading pre-Hydro parameters
[ INFO] [1680664931.477508670, 3.200000032]: local_costmap: Using plugin "obstacle_layer"
[ INFO] [1680664931.478425369, 3.200000032]:     Subscribed to Topics: scan
[ INFO] [1680664931.483579693, 3.200000032]: local_costmap: Using plugin "inflation_layer"
[ INFO] [1680664931.495184737, 3.200000032]: Created local_planner base_local_planner/TrajectoryPlannerROS
[ INFO] [1680664931.496951100, 3.200000032]: Sim period is set to 0.05
[ WARN] [1680664931.498538243, 3.200000032]: Trajectory Rollout planner initialized with param meter_scoring not set. Set it to true to make your settings robust against changes of costmap resolution.
[INFO] [1680664931.512452, 0.000000]: ============= Start all in one planner! =============
[INFO] [1680664931.538888, 0.000000]: Loading all in one policy from file...
/root/.cache/pypoetry/virtualenvs/arena-rosnav-FUkATqp9-py3.8/lib/python3.8/site-packages/torch/cuda/__init__.py:145: UserWarning: 
NVIDIA GeForce RTX 3080 Ti with CUDA capability sm_86 is not compatible with the current PyTorch installation.
The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_70.
If you want to use the NVIDIA GeForce RTX 3080 Ti GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/

  warnings.warn(incompatible_device_warn.format(device_name, capability, " ".join(arch_list), device_name))
Loading all in one policy...
Hello
[ INFO] [1680664931.749702899, 3.500000035]: Recovery behavior will clear layer 'obstacles'
[ INFO] [1680664931.751529261, 3.500000035]: Recovery behavior will clear layer 'obstacles'
[ INFO] [1680664931.760879507, 3.500000035]: odom received!
[ WARN] [1680664931.849746098, 3.600000036]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
started roslaunch server http://localhost:37717/

SUMMARY
========

PARAMETERS
 * /burger_0_0/teb/local_costmap/global_frame: map
 * /burger_0_0/teb/local_costmap/height: 4
 * /burger_0_0/teb/local_costmap/inflation_layer/inflation_radius: 0.2
 * /burger_0_0/teb/local_costmap/obstacle_layer/map_type: costmap
 * /burger_0_0/teb/local_costmap/obstacle_layer/observation_sources: scan
 * /burger_0_0/teb/local_costmap/obstacle_layer/obstacle_range: 3.5
 * /burger_0_0/teb/local_costmap/obstacle_layer/raytrace_range: 5
 * /burger_0_0/teb/local_costmap/obstacle_layer/scan/clearing: True
 * /burger_0_0/teb/local_costmap/obstacle_layer/scan/data_type: LaserScan
 * /burger_0_0/teb/local_costmap/obstacle_layer/scan/marking: True
 * /burger_0_0/teb/local_costmap/obstacle_layer/scan/sensor_frame: base_scan
 * /burger_0_0/teb/local_costmap/obstacle_layer/scan/topic: scan
 * /burger_0_0/teb/local_costmap/plugins: [{'name': 'inflat...
 * /burger_0_0/teb/local_costmap/publish_frequency: 2
 * /burger_0_0/teb/local_costmap/resolution: 0.05
 * /burger_0_0/teb/local_costmap/robot_base_frame: base_footprint
 * /burger_0_0/teb/local_costmap/rolling_window: True
 * /burger_0_0/teb/local_costmap/transform_tolerance: 0.3
 * /burger_0_0/teb/local_costmap/update_frequency: 20.0
 * /burger_0_0/teb/local_costmap/width: 4
 * /burger_0_0/teb/local_planner_name: teb_local_planner
 * /burger_0_0/teb/local_planner_type: teb_local_planner...
 * /burger_0_0/teb/min_tolerated_x_vel: 0.1
 * /burger_0_0/teb/reset_costmap_automatically: False
 * /burger_0_0/teb/reset_costmap_interval: 5
 * /burger_0_0/teb/teb_local_planner/acc_lim_theta: 0.5
 * /burger_0_0/teb/teb_local_planner/acc_lim_x: 0.5
 * /burger_0_0/teb/teb_local_planner/complete_global_plan: True
 * /burger_0_0/teb/teb_local_planner/costmap_converter_plugin: 
 * /burger_0_0/teb/teb_local_planner/costmap_converter_rate: 5
 * /burger_0_0/teb/teb_local_planner/costmap_converter_spin_thread: True
 * /burger_0_0/teb/teb_local_planner/costmap_obstacles_behind_robot_dist: 1.5
 * /burger_0_0/teb/teb_local_planner/delete_detours_backwards: True
 * /burger_0_0/teb/teb_local_planner/dynamic_obstacle_inflation_dist: 0.6
 * /burger_0_0/teb/teb_local_planner/enable_homotopy_class_planning: True
 * /burger_0_0/teb/teb_local_planner/enable_multithreading: True
 * /burger_0_0/teb/teb_local_planner/footprint_model/type: point
 * /burger_0_0/teb/teb_local_planner/free_goal_vel: False
 * /burger_0_0/teb/teb_local_planner/h_signature_prescaler: 0.5
 * /burger_0_0/teb/teb_local_planner/h_signature_threshold: 0.1
 * /burger_0_0/teb/teb_local_planner/include_costmap_obstacles: True
 * /burger_0_0/teb/teb_local_planner/include_dynamic_obstacles: True
 * /burger_0_0/teb/teb_local_planner/inflation_dist: 0.6
 * /burger_0_0/teb/teb_local_planner/max_number_classes: 4
 * /burger_0_0/teb/teb_local_planner/max_ratio_detours_duration_best_duration: 3.0
 * /burger_0_0/teb/teb_local_planner/max_vel_theta: 0.5
 * /burger_0_0/teb/teb_local_planner/max_vel_x: 0.3
 * /burger_0_0/teb/teb_local_planner/max_vel_x_backwards: 0.15
 * /burger_0_0/teb/teb_local_planner/max_vel_y: 0.0
 * /burger_0_0/teb/teb_local_planner/min_obstacle_dist: 0.25
 * /burger_0_0/teb/teb_local_planner/min_turning_radius: 0.0
 * /burger_0_0/teb/teb_local_planner/no_inner_iterations: 5
 * /burger_0_0/teb/teb_local_planner/no_outer_iterations: 4
 * /burger_0_0/teb/teb_local_planner/obstacle_cost_exponent: 4
 * /burger_0_0/teb/teb_local_planner/obstacle_heading_threshold: 0.45
 * /burger_0_0/teb/teb_local_planner/obstacle_poses_affected: 15
 * /burger_0_0/teb/teb_local_planner/optimization_activate: True
 * /burger_0_0/teb/teb_local_planner/optimization_verbose: False
 * /burger_0_0/teb/teb_local_planner/oscillation_omega_eps: 0
 * /burger_0_0/teb/teb_local_planner/oscillation_recovery: True
 * /burger_0_0/teb/teb_local_planner/oscillation_v_eps: 0.1
 * /burger_0_0/teb/teb_local_planner/penalty_epsilon: 0.1
 * /burger_0_0/teb/teb_local_planner/roadmap_graph_area_length_scale: 1.0
 * /burger_0_0/teb/teb_local_planner/roadmap_graph_area_width: 5
 * /burger_0_0/teb/teb_local_planner/roadmap_graph_no_samples: 15
 * /burger_0_0/teb/teb_local_planner/selection_alternative_time_cost: False
 * /burger_0_0/teb/teb_local_planner/selection_cost_hysteresis: 1.0
 * /burger_0_0/teb/teb_local_planner/selection_obst_cost_scale: 100.0
 * /burger_0_0/teb/teb_local_planner/selection_prefer_initial_plan: 0.9
 * /burger_0_0/teb/teb_local_planner/shrink_horizon_backup: True
 * /burger_0_0/teb/teb_local_planner/shrink_horizon_min_duration: 10
 * /burger_0_0/teb/teb_local_planner/switching_blocking_period: 0.0
 * /burger_0_0/teb/teb_local_planner/viapoints_all_candidates: True
 * /burger_0_0/teb/teb_local_planner/visualize_hc_graph: False
 * /burger_0_0/teb/teb_local_planner/visualize_with_time_as_z_axis_scale: False
 * /burger_0_0/teb/teb_local_planner/weight_acc_lim_theta: 1
 * /burger_0_0/teb/teb_local_planner/weight_acc_lim_x: 1
 * /burger_0_0/teb/teb_local_planner/weight_adapt_factor: 2
 * /burger_0_0/teb/teb_local_planner/weight_dynamic_obstacle: 10
 * /burger_0_0/teb/teb_local_planner/weight_dynamic_obstacle_inflation: 0.2
 * /burger_0_0/teb/teb_local_planner/weight_inflation: 0.2
 * /burger_0_0/teb/teb_local_planner/weight_kinematics_forward_drive: 1
 * /burger_0_0/teb/teb_local_planner/weight_kinematics_nh: 1000
 * /burger_0_0/teb/teb_local_planner/weight_kinematics_turning_radius: 1
 * /burger_0_0/teb/teb_local_planner/weight_max_vel_theta: 1
 * /burger_0_0/teb/teb_local_planner/weight_max_vel_x: 2
 * /burger_0_0/teb/teb_local_planner/weight_obstacle: 100
 * /burger_0_0/teb/teb_local_planner/weight_optimaltime: 1
 * /burger_0_0/teb/teb_local_planner/weight_shortest_path: 0
 * /burger_0_0/teb/teb_local_planner/weight_viapoint: 1
 * /burger_0_0/teb/teb_local_planner/xy_goal_tolerance: 0.2
 * /burger_0_0/teb/teb_local_planner/yaw_goal_tolerance: 0.1
 * /rosdistro: noetic
 * /rosversion: 1.16.0

NODES
  /burger_0_0/
    teb (all_in_one_local_planner_interface/all_in_one_local_planner_node)

ROS_MASTER_URI=http://localhost:11311
[ WARN] [1680664931.950077558, 3.700000037]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
process[burger_0_0/teb-1]: started with pid [10617]
LOCAL PLANNER MANAGER LOADED
[INFO] [1680664932.009858, 3.700000]: Observation space configuration:
[INFO] [1680664932.010412, 3.700000]: Use laser info of size (1,32)
[INFO] [1680664932.010915, 3.700000]: Use robot velocity: False
[ WARN] [1680664932.050317458, 3.800000038]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664932.149529214, 3.900000039]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
started roslaunch server http://localhost:46857/

SUMMARY
========

PARAMETERS
 * /burger_0_0/global_planner/NavfnROS/lethal_cost: 1
 * /burger_0_0/global_planner/global_costmap/global_frame: map
 * /burger_0_0/global_planner/global_costmap/inflation_layer/cost_scaling_factor: 3.0
 * /burger_0_0/global_planner/global_costmap/inflation_layer/inflation_radius: 1
 * /burger_0_0/global_planner/global_costmap/obstacle_layer/footprint: [[-0.105, -0.105]...
 * /burger_0_0/global_planner/global_costmap/obstacle_layer/map_type: costmap
 * /burger_0_0/global_planner/global_costmap/obstacle_layer/observation_sources: scan
 * /burger_0_0/global_planner/global_costmap/obstacle_layer/obstacle_range: 3.5
 * /burger_0_0/global_planner/global_costmap/obstacle_layer/raytrace_range: 5
 * /burger_0_0/global_planner/global_costmap/obstacle_layer/scan/clearing: True
 * /burger_0_0/global_planner/global_costmap/obstacle_layer/scan/data_type: LaserScan
 * /burger_0_0/global_planner/global_costmap/obstacle_layer/scan/marking: True
 * /burger_0_0/global_planner/global_costmap/obstacle_layer/scan/sensor_frame: base_scan
 * /burger_0_0/global_planner/global_costmap/obstacle_layer/scan/topic: scan
 * /burger_0_0/global_planner/global_costmap/plugins: [{'name': 'static...
 * /burger_0_0/global_planner/global_costmap/publish_frequency: 2.0
 * /burger_0_0/global_planner/global_costmap/resolution: 0.1
 * /burger_0_0/global_planner/global_costmap/robot_base_frame: base_footprint
 * /burger_0_0/global_planner/global_costmap/transform_tolerance: 0.1
 * /burger_0_0/global_planner/global_costmap/update_frequency: 5.0
 * /burger_0_0/global_planner/global_planner_type: navfn/NavfnROS
 * /burger_0_0/global_planner/reset_costmap_automatically: True
 * /burger_0_0/global_planner/reset_costmap_interval: 3
 * /rosdistro: noetic
 * /rosversion: 1.16.0

NODES
  /burger_0_0/
    global_planner (all_in_one_global_planner_interface/GlobalPlannerInterface)

ROS_MASTER_URI=http://localhost:11311
process[burger_0_0/global_planner-2]: started with pid [10645]
OBSERVATION COLLECTOR LOADED
[INFO] [1680664932.245858, 3.900000]: All in one planner: All modules loaded!
[ WARN] [1680664932.250438783, 4.000000040]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ INFO] [1680664932.449475400, 4.200000042]: local_costmap: Using plugin "inflation_layer"
[ WARN] [1680664932.449512276, 4.200000042]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ INFO] [1680664932.453737451, 4.200000042]: local_costmap: Using plugin "obstacle_layer"
[ INFO] [1680664932.454623796, 4.200000042]:     Subscribed to Topics: scan
[ INFO] [1680664932.466978614, 4.200000042]: Started local costmap!
[ INFO] [1680664932.468150050, 4.200000042]: Initialize teb_local_planner/TebLocalPlannerROS...
[ INFO] [1680664932.470051711, 4.200000042]: Loaded local planner teb_local_planner/TebLocalPlannerROS
[ INFO] [1680664932.489844956, 4.200000042]: Footprint model 'point' loaded for trajectory optimization.
[ INFO] [1680664932.489877276, 4.200000042]: Parallel planning in distinctive topologies enabled.
[ INFO] [1680664932.489892761, 4.200000042]: No costmap conversion plugin specified. All occupied costmap cells are treaten as point obstacles.
[ INFO] [1680664932.526784736, 4.200000042]: All services were created!
[ WARN] [1680664932.547402323, 4.300000043]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664932.550098943, 4.300000043]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ INFO] [1680664932.647203315, 4.400000044]: odom received!
[ WARN] [1680664932.647578607, 4.400000044]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ INFO] [1680664932.649206951, 4.400000044]: global_costmap: Using plugin "static_layer"
[ INFO] [1680664932.652008501, 4.400000044]: Requesting the map...
[ WARN] [1680664932.747354484, 4.500000045]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664932.749858202, 4.500000045]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664932.848071791, 4.600000046]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ INFO] [1680664932.848275316, 4.600000046]: Resizing costmap to 626 X 481 at 0.050000 m/pix
[ WARN] [1680664932.849803512, 4.600000046]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664932.947199853, 4.700000047]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ INFO] [1680664932.948155582, 4.700000047]: Received a 626 X 481 map at 0.050000 m/pix
[ WARN] [1680664932.949708787, 4.700000047]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ INFO] [1680664932.949763502, 4.700000047]: global_costmap: Using plugin "obstacle_layer"
[ INFO] [1680664932.950779519, 4.700000047]:     Subscribed to Topics: scan
[ INFO] [1680664932.955995328, 4.700000047]: global_costmap: Using plugin "inflation_layer"
[ INFO] [1680664932.965952971, 4.700000047]: Started global costmap!
[ WARN] [1680664933.047674053, 4.800000048]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664933.051371392, 4.800000048]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664933.148093284, 4.900000049]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664933.247229698, 5.000000050]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664933.249961349, 5.000000050]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664933.347484047, 5.100000051]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664933.448454086, 5.200000052]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664933.450927777, 5.200000052]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664933.548065227, 5.300000053]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664933.550968317, 5.300000053]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664933.647301422, 5.400000054]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664933.747609896, 5.500000055]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664933.749906540, 5.500000055]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664933.848190684, 5.600000056]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664933.947735027, 5.700000057]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664933.949620762, 5.700000057]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664934.047772649, 5.800000058]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[INFO] [1680664934.147619, 5.900000]: ============= All in one planner ready! =============
[ WARN] [1680664934.147813804, 5.900000059]: The origin for the sensor at (17.35, 21.90) is out of map bounds. So, the costmap cannot raytrace for it.
[ WARN] [1680664934.147863099, 5.900000059]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[INFO] [1680664934.155728, 5.900000]: =============
[INFO] [1680664934.156571, 5.900000]: Task Reseted!
[INFO] [1680664934.157009, 5.900000]: =============
[ WARN] [1680664934.247635545, 6.000000060]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ERROR] [1680664934.248657499, 6.000000060]: None of the 61 first of 61 (61) points of the global plan were in the local costmap and free
[ERROR] [1680664934.248695823, 6.000000060]: None of the points of the global plan were in the local costmap, global plan points too far from robot
[ WARN] [1680664934.248835729, 6.000000060]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664934.248874145, 6.000000060]: The origin for the sensor at (17.35, 21.90) is out of map bounds. So, the costmap cannot raytrace for it.
Exception in thread Thread-17:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/opt/ros/noetic/lib/python3/dist-packages/rospy/timer.py", line 237, in run
    self._callback(TimerEvent(last_expected, last_real, current_expected, current_real, last_duration))
  File "/root/catkin_ws/src/planners/all_in_one/all_in_one_planner/scripts/all_in_one_node.py", line 145, in aio_control_sequence
    self.aio_action = self._get_aio_action(merged_obs)
  File "/root/catkin_ws/src/planners/all_in_one/all_in_one_planner/scripts/all_in_one_node.py", line 209, in _get_aio_action
    return self._aio_policy.predict(obs_normed, deterministic=True)[0]
  File "/root/catkin_ws/src/utils/stable-baselines3/stable_baselines3/common/policies.py", line 338, in predict
    actions = self._predict(observation, deterministic=deterministic)
  File "/root/catkin_ws/src/utils/stable-baselines3/stable_baselines3/common/policies.py", line 631, in _predict
    return self.get_distribution(observation).get_actions(deterministic=deterministic)
  File "/root/catkin_ws/src/utils/stable-baselines3/stable_baselines3/common/policies.py", line 659, in get_distribution
    latent_pi = self.mlp_extractor.forward_actor(features)
  File "/root/catkin_ws/src/utils/stable-baselines3/stable_baselines3/common/torch_layers.py", line 233, in forward_actor
    return self.policy_net(self.shared_net(features))
  File "/root/.cache/pypoetry/virtualenvs/arena-rosnav-FUkATqp9-py3.8/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
    return forward_call(*input, **kwargs)
  File "/root/.cache/pypoetry/virtualenvs/arena-rosnav-FUkATqp9-py3.8/lib/python3.8/site-packages/torch/nn/modules/container.py", line 141, in forward
    input = module(input)
  File "/root/.cache/pypoetry/virtualenvs/arena-rosnav-FUkATqp9-py3.8/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
    return forward_call(*input, **kwargs)
  File "/root/.cache/pypoetry/virtualenvs/arena-rosnav-FUkATqp9-py3.8/lib/python3.8/site-packages/torch/nn/modules/linear.py", line 103, in forward
    return F.linear(input, self.weight, self.bias)
RuntimeError: CUDA error: CUBLAS_STATUS_EXECUTION_FAILED when calling `cublasSgemm( handle, opa, opb, m, n, k, &alpha, a, lda, b, ldb, &beta, c, ldc)`
[ WARN] [1680664934.347319933, 6.100000061]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664934.447311134, 6.200000062]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664934.447545300, 6.200000062]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664934.547836461, 6.300000063]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664934.548141800, 6.300000063]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664934.647550430, 6.400000064]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664934.647588349, 6.400000064]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664934.747190051, 6.500000065]: Costmap2DROS transform timeout. Current time: 6.5000, global_pose stamp: 6.4000, tolerance: 0.1000
[ WARN] [1680664934.747652361, 6.500000065]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664934.747973066, 6.500000065]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664934.847365462, 6.600000066]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664934.947473269, 6.700000067]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664934.947803918, 6.700000067]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664935.047928743, 6.800000068]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664935.048010666, 6.800000068]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664935.147909443, 6.900000069]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664935.247340032, 7.000000070]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664935.248216139, 7.000000070]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664935.347866229, 7.100000071]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds
[ WARN] [1680664935.448133490, 7.200000072]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds

@doyeon-danny
Copy link
Author

doyeon-danny commented Apr 5, 2023

After I found that Cuda has problem, I re-setup on the new Docker container using related cuda version.

Environment is :
NVIDIA-SMI 525.60.13
Driver Version: 525.60.13
CUDA Version: 12.0
Docker image : nvidia/cuda:12.0.0-devel-ubuntu20.04
-> I matched the cuda version between Docker and nvidia-smi.

But, then, I couldn't catkin_make.
In the poetry shell environment,
I met several build errors whenever I re-launch "catkin_make".

1.

[ 33%] Built target mpc_local_planner_optimal_control
[ 33%] Linking CXX shared library /root/catkin_ws/devel/lib/libmapping.so
[ 33%] Built target mapping
make: *** [Makefile:146: all] Error 2

2.

[ 70%] Linking CXX executable /root/catkin_ws/devel/lib/ira_laser_tools/laserscan_virtualizer
[ 70%] Built target laserscan_multi_merger
[ 70%] Built target laserscan_virtualizer
make: *** [Makefile:146: all] Error 2
Invoking "make -j16 -l16" failed

3.

[ 77%] Linking CXX shared library /root/catkin_ws/devel/lib/libspencer_tracking_rviz_plugin.so
[ 77%] Built target spencer_tracking_rviz_plugin
[ 77%] Linking CXX shared library /root/catkin_ws/devel/lib/libmpc_local_planner.so
[ 77%] Built target mpc_local_planner
make: *** [Makefile:146: all] Error 2
Invoking "make -j16 -l16" failed

@Jacenty00
Copy link
Contributor

Hi @Jacenty00, I recently tried to install it on new Docker container, but I failed.

So I will show the result after launching start_arena launch file and command.

1. start_arena.launch with aio roslaunch arena_bringup start_arena.launch local_planner:=aio image I only changed local planner with default world and robot didn't move. and error code is like this: [ WARN] [1680661493.346662684, 34.000000340]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds [ WARN] [1680661493.444381386, 34.100000341]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds [ WARN] [1680661493.544287495, 34.200000342]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds [ WARN] [1680661493.544896068, 34.200000342]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds [ WARN] [1680661493.644408503, 34.300000343]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds [ WARN] [1680661493.645076377, 34.300000343]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds [ WARN] [1680661493.744868401, 34.400000344]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds [ WARN] [1680661493.844098543, 34.500000345]: Map update loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds [ WARN] [1680661493.844650606, 34.500000345]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds [ WARN] [1680661493.944104096, 34.600000346]: Control loop missed its desired rate of 20.0000Hz... the loop actually took 0.0500 seconds

  1. default start_arena.launch
    roslaunch arena_bringup start_arena.launch
    image
    I didn't change any world or scenarios, and robot went to the goal point but slowly.

I am wondering if I am doing right following the instruction. I hope you check my mistakes, thank you.

Yeah, everything looks fine here. These are actually warning messages and can be ignored most of the time. If you want to get rid of them, you would have to lower the values of controller_frequency and/or costmap update frequency. These can be found here:

@Jacenty00
Copy link
Contributor

Regarding the actual problem, having the Docker image cuda version match your driver is the right choice. I just did the installation process using the same docker image you referenced and was able to get AiO running without any errors. My guess would be that you are missing some installation step. Make sure you follow our install guide. Probably some required ROS packages are missing, could be the reason why you are not able to run catkin_make.

If you have problems while installing our fork of stable-baselines3, making sure that you are using specific version of setuptools may be useful

pip install --upgrade setuptools==65.5.0

@Jacenty00
Copy link
Contributor

After I found that Cuda has problem, I re-setup on the new Docker container using related cuda version.

Environment is : NVIDIA-SMI 525.60.13 Driver Version: 525.60.13 CUDA Version: 12.0 Docker image : nvidia/cuda:12.0.0-devel-ubuntu20.04 -> I matched the cuda version between Docker and nvidia-smi.

But, then, I couldn't catkin_make. In the poetry shell environment, I met several build errors whenever I re-launch "catkin_make".

1.

[ 33%] Built target mpc_local_planner_optimal_control
[ 33%] Linking CXX shared library /root/catkin_ws/devel/lib/libmapping.so
[ 33%] Built target mapping
make: *** [Makefile:146: all] Error 2

2.

[ 70%] Linking CXX executable /root/catkin_ws/devel/lib/ira_laser_tools/laserscan_virtualizer
[ 70%] Built target laserscan_multi_merger
[ 70%] Built target laserscan_virtualizer
make: *** [Makefile:146: all] Error 2
Invoking "make -j16 -l16" failed

3.

[ 77%] Linking CXX shared library /root/catkin_ws/devel/lib/libspencer_tracking_rviz_plugin.so
[ 77%] Built target spencer_tracking_rviz_plugin
[ 77%] Linking CXX shared library /root/catkin_ws/devel/lib/libmpc_local_planner.so
[ 77%] Built target mpc_local_planner
make: *** [Makefile:146: all] Error 2
Invoking "make -j16 -l16" failed

Also, whenever catkin_make fails to compile, it should provide some more useful error message as to which package was the culprit. It may be that you need to scroll through the terminal, in order to find it.

@doyeon-danny
Copy link
Author

Thank you for your help and answer.
I followed your advice and the installation guide.

  1. Fixing setuptools version
    1-setuptools
    I changed it from 45.xx to 65.5.0.

  2. rosws update
    I did rosws update to add AIO later.

  3. Adding AIO package
    after Installing rosnav package at first, I did rosws update and added AIO package.

  4. poetry shell && poetry install

  5. sudo apt update && sudo apt install -y libopencv-dev liblua5.2-dev
    ros-noetic-navigation ros-noetic-teb-local-planner
    ros-noetic-mpc-local-planner libarmadillo-dev ros-noetic-nlopt
    ros-noetic-turtlebot3-description ros-noetic-turtlebot3-navigation
    ros-noetic-lms1xx ros-noetic-velodyne-description ros-noetic-hector-gazebo
    ros-noetic-ira-laser-tools

  6. cd ../utils/stable-baselines3 && pip install -e .

  7. cd ../../.. && catkin_make

After following the guide, I had the same error below.

Thank you for your help sincerely.

==========================================

error: no matching function for call to ‘get<std::chrono::duration<long unsigned int, std::ratio<86400, 1> > >(std::tuple<std::chrono::duration<long unsigned int, std::ratio<86400, 1> >, std::chrono::duration<long int, std::ratio<3600, 1> >, std::chrono::duration<long int, std::ratio<60, 1> >, std::chrono::duration<long int, std::ratio<1, 1> >, std::chrono::duration<long int, std::ratio<1, 1000> > >&)’
  835 |         (std::get<Durations>(retval) =
      |          ~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from /usr/include/c++/9/algorithm:60,
                 from /usr/include/boost/math/tools/config.hpp:18,
                 from /usr/include/boost/math/special_functions/round.hpp:13,
                 from /opt/ros/noetic/include/ros/time.h:58,
                 from /opt/ros/noetic/include/ros/ros.h:38,
                 from /opt/ros/noetic/include/control_toolbox/pid.h:39,
                 from /opt/ros/noetic/include/gazebo_ros_control/default_robot_hw_sim.h:45,
                 from /root/catkin_ws/src/utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/include/cob_gazebo_ros_control/hwi_switch_robot_hw_sim.h:23,
                 from /root/catkin_ws/src/utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/src/hwi_switch_robot_hw_sim.cpp:19:
/usr/include/c++/9/utility:219:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(std::pair<_Tp1, _Tp2>&)’
  219 |     get(std::pair<_Tp1, _Tp2>& __in) noexcept
      |     ^~~
/usr/include/c++/9/utility:219:5: note:   template argument deduction/substitution failed:
/usr/include/c++/9/utility:224:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(std::pair<_Tp1, _Tp2>&&)’
  224 |     get(std::pair<_Tp1, _Tp2>&& __in) noexcept
      |     ^~~
/usr/include/c++/9/utility:224:5: note:   template argument deduction/substitution failed:
/usr/include/c++/9/utility:229:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const std::pair<_Tp1, _Tp2>&)’
  229 |     get(const std::pair<_Tp1, _Tp2>& __in) noexcept
      |     ^~~
/usr/include/c++/9/utility:229:5: note:   template argument deduction/substitution failed:
/usr/include/c++/9/utility:234:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(const std::pair<_Tp1, _Tp2>&&)’
  234 |     get(const std::pair<_Tp1, _Tp2>&& __in) noexcept
      |     ^~~
/usr/include/c++/9/utility:234:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/9/tuple:39,
                 from /usr/include/c++/9/bits/unique_ptr.h:37,
                 from /usr/include/c++/9/bits/locale_conv.h:41,
                 from /usr/include/c++/9/locale:43,
                 from /usr/include/c++/9/iomanip:43,
                 from /usr/include/boost/math/policies/error_handling.hpp:12,
                 from /usr/include/boost/math/special_functions/round.hpp:14,
                 from /opt/ros/noetic/include/ros/time.h:58,
                 from /opt/ros/noetic/include/ros/ros.h:38,
                 from /opt/ros/noetic/include/control_toolbox/pid.h:39,
                 from /opt/ros/noetic/include/gazebo_ros_control/default_robot_hw_sim.h:45,
                 from /root/catkin_ws/src/utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/include/cob_gazebo_ros_control/hwi_switch_robot_hw_sim.h:23,
                 from /root/catkin_ws/src/utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/src/hwi_switch_robot_hw_sim.cpp:19:
/usr/include/c++/9/array:307:5: note: candidate: ‘template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp& std::get(std::array<_Tp, _Nm>&)’
  307 |     get(array<_Tp, _Nm>& __arr) noexcept
      |     ^~~
/usr/include/c++/9/array:307:5: note:   template argument deduction/substitution failed:
/usr/include/c++/9/array:316:5: note: candidate: ‘template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp&& std::get(std::array<_Tp, _Nm>&&)’
  316 |     get(array<_Tp, _Nm>&& __arr) noexcept
      |     ^~~
/usr/include/c++/9/array:316:5: note:   template argument deduction/substitution failed:
/usr/include/c++/9/array:324:5: note: candidate: ‘template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp& std::get(const std::array<_Tp, _Nm>&)’
  324 |     get(const array<_Tp, _Nm>& __arr) noexcept
      |     ^~~
/usr/include/c++/9/array:324:5: note:   template argument deduction/substitution failed:
/usr/include/c++/9/array:333:5: note: candidate: ‘template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp&& std::get(const std::array<_Tp, _Nm>&&)’
  333 |     get(const array<_Tp, _Nm>&& __arr) noexcept
      |     ^~~
/usr/include/c++/9/array:333:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/9/bits/unique_ptr.h:37,
                 from /usr/include/c++/9/bits/locale_conv.h:41,
                 from /usr/include/c++/9/locale:43,
                 from /usr/include/c++/9/iomanip:43,
                 from /usr/include/boost/math/policies/error_handling.hpp:12,
                 from /usr/include/boost/math/special_functions/round.hpp:14,
                 from /opt/ros/noetic/include/ros/time.h:58,
                 from /opt/ros/noetic/include/ros/ros.h:38,
                 from /opt/ros/noetic/include/control_toolbox/pid.h:39,
                 from /opt/ros/noetic/include/gazebo_ros_control/default_robot_hw_sim.h:45,
                 from /root/catkin_ws/src/utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/include/cob_gazebo_ros_control/hwi_switch_robot_hw_sim.h:23,
                 from /root/catkin_ws/src/utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/src/hwi_switch_robot_hw_sim.cpp:19:
/usr/include/c++/9/tuple:1320:5: note: candidate: ‘template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >& std::get(std::tuple<_Elements ...>&)’
 1320 |     get(tuple<_Elements...>& __t) noexcept
      |     ^~~
/usr/include/c++/9/tuple:1320:5: note:   template argument deduction/substitution failed:
/usr/include/c++/9/tuple:1326:5: note: candidate: ‘template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >& std::get(const std::tuple<_Elements ...>&)’
 1326 |     get(const tuple<_Elements...>& __t) noexcept
      |     ^~~
/usr/include/c++/9/tuple:1326:5: note:   template argument deduction/substitution failed:
/usr/include/c++/9/tuple:1332:5: note: candidate: ‘template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >&& std::get(std::tuple<_Elements ...>&&)’
 1332 |     get(tuple<_Elements...>&& __t) noexcept
      |     ^~~
/usr/include/c++/9/tuple:1332:5: note:   template argument deduction/substitution failed:
/usr/include/c++/9/tuple:1341:5: note: candidate: ‘template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >&& std::get(const std::tuple<_Elements ...>&&)’
 1341 |     get(const tuple<_Elements...>&& __t) noexcept
      |     ^~~
/usr/include/c++/9/tuple:1341:5: note:   template argument deduction/substitution failed:
In file included from /opt/ros/noetic/include/ros/message.h:38,
                 from /opt/ros/noetic/include/ros/publisher.h:33,
                 from /opt/ros/noetic/include/ros/node_handle.h:32,
                 from /opt/ros/noetic/include/ros/ros.h:45,
                 from /opt/ros/noetic/include/control_toolbox/pid.h:39,
                 from /opt/ros/noetic/include/gazebo_ros_control/default_robot_hw_sim.h:45,
                 from /root/catkin_ws/src/utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/include/cob_gazebo_ros_control/hwi_switch_robot_hw_sim.h:23,
                 from /root/catkin_ws/src/utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/src/hwi_switch_robot_hw_sim.cpp:19:
/usr/include/boost/array.hpp:440:7: note: candidate: ‘template<long unsigned int Idx, class T, long unsigned int N> T& std::get(boost::array<T, N>&)’
  440 |    T &get(boost::array<T,N> &arr) BOOST_NOEXCEPT {
      |       ^~~
/usr/include/boost/array.hpp:440:7: note:   template argument deduction/substitution failed:
/usr/include/boost/array.hpp:446:13: note: candidate: ‘template<long unsigned int Idx, class T, long unsigned int N> const T& std::get(const boost::array<T, N>&)’
  446 |    const T &get(const boost::array<T,N> &arr) BOOST_NOEXCEPT {
      |             ^~~
/usr/include/boost/array.hpp:446:13: note:   template argument deduction/substitution failed:
In file included from /usr/include/ignition/math6/gz/math/Spline.hh:22,
                 from /usr/include/ignition/math6/ignition/math/Spline.hh:18,
                 from /usr/include/gazebo-11/gazebo/common/Animation.hh:22,
                 from /usr/include/gazebo-11/gazebo/common/common.hh:5,
                 from /opt/ros/noetic/include/gazebo_ros_control/default_robot_hw_sim.h:54,
                 from /root/catkin_ws/src/utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/include/cob_gazebo_ros_control/hwi_switch_robot_hw_sim.h:23,
                 from /root/catkin_ws/src/utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/src/hwi_switch_robot_hw_sim.cpp:19:
/usr/include/ignition/math6/gz/math/Helpers.hh:838:30: error: no matching function for call to ‘get<std::chrono::duration<long unsigned int, std::ratio<86400, 1> > >(std::tuple<std::chrono::duration<long unsigned int, std::ratio<86400, 1> >, std::chrono::duration<long int, std::ratio<3600, 1> >, std::chrono::duration<long int, std::ratio<60, 1> >, std::chrono::duration<long int, std::ratio<1, 1> >, std::chrono::duration<long int, std::ratio<1, 1000> > >&)’
  838 |           std::get<Durations>(retval))))), 0)...};
      |           ~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from /usr/include/c++/9/algorithm:60,
                 from /usr/include/boost/math/tools/config.hpp:18,
                 from /usr/include/boost/math/special_functions/round.hpp:13,
                 from /opt/ros/noetic/include/ros/time.h:58,
                 from /opt/ros/noetic/include/ros/ros.h:38,
                 from /opt/ros/noetic/include/control_toolbox/pid.h:39,
                 from /opt/ros/noetic/include/gazebo_ros_control/default_robot_hw_sim.h:45,
                 from /root/catkin_ws/src/utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/include/cob_gazebo_ros_control/hwi_switch_robot_hw_sim.h:23,
                 from /root/catkin_ws/src/utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/src/hwi_switch_robot_hw_sim.cpp:19:
/usr/include/c++/9/utility:219:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(std::pair<_Tp1, _Tp2>&)’
  219 |     get(std::pair<_Tp1, _Tp2>& __in) noexcept
      |     ^~~
/usr/include/c++/9/utility:219:5: note:   template argument deduction/substitution failed:
/usr/include/c++/9/utility:224:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(std::pair<_Tp1, _Tp2>&&)’
  224 |     get(std::pair<_Tp1, _Tp2>&& __in) noexcept
      |     ^~~
/usr/include/c++/9/utility:224:5: note:   template argument deduction/substitution failed:
/usr/include/c++/9/utility:229:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const std::pair<_Tp1, _Tp2>&)’
  229 |     get(const std::pair<_Tp1, _Tp2>& __in) noexcept
      |     ^~~
/usr/include/c++/9/utility:229:5: note:   template argument deduction/substitution failed:
/usr/include/c++/9/utility:234:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(const std::pair<_Tp1, _Tp2>&&)’
  234 |     get(const std::pair<_Tp1, _Tp2>&& __in) noexcept
      |     ^~~
/usr/include/c++/9/utility:234:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/9/tuple:39,
                 from /usr/include/c++/9/bits/unique_ptr.h:37,
                 from /usr/include/c++/9/bits/locale_conv.h:41,
                 from /usr/include/c++/9/locale:43,
                 from /usr/include/c++/9/iomanip:43,
                 from /usr/include/boost/math/policies/error_handling.hpp:12,
                 from /usr/include/boost/math/special_functions/round.hpp:14,
                 from /opt/ros/noetic/include/ros/time.h:58,
                 from /opt/ros/noetic/include/ros/ros.h:38,
                 from /opt/ros/noetic/include/control_toolbox/pid.h:39,
                 from /opt/ros/noetic/include/gazebo_ros_control/default_robot_hw_sim.h:45,
                 from /root/catkin_ws/src/utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/include/cob_gazebo_ros_control/hwi_switch_robot_hw_sim.h:23,
                 from /root/catkin_ws/src/utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/src/hwi_switch_robot_hw_sim.cpp:19:
/usr/include/c++/9/array:307:5: note: candidate: ‘template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp& std::get(std::array<_Tp, _Nm>&)’
  307 |     get(array<_Tp, _Nm>& __arr) noexcept
      |     ^~~
/usr/include/c++/9/array:307:5: note:   template argument deduction/substitution failed:
/usr/include/c++/9/array:316:5: note: candidate: ‘template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp&& std::get(std::array<_Tp, _Nm>&&)’
  316 |     get(array<_Tp, _Nm>&& __arr) noexcept
      |     ^~~
/usr/include/c++/9/array:316:5: note:   template argument deduction/substitution failed:
/usr/include/c++/9/array:324:5: note: candidate: ‘template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp& std::get(const std::array<_Tp, _Nm>&)’
  324 |     get(const array<_Tp, _Nm>& __arr) noexcept
      |     ^~~
/usr/include/c++/9/array:324:5: note:   template argument deduction/substitution failed:
/usr/include/c++/9/array:333:5: note: candidate: ‘template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp&& std::get(const std::array<_Tp, _Nm>&&)’
  333 |     get(const array<_Tp, _Nm>&& __arr) noexcept
      |     ^~~
/usr/include/c++/9/array:333:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/9/bits/unique_ptr.h:37,
                 from /usr/include/c++/9/bits/locale_conv.h:41,
                 from /usr/include/c++/9/locale:43,
                 from /usr/include/c++/9/iomanip:43,
                 from /usr/include/boost/math/policies/error_handling.hpp:12,
                 from /usr/include/boost/math/special_functions/round.hpp:14,
                 from /opt/ros/noetic/include/ros/time.h:58,
                 from /opt/ros/noetic/include/ros/ros.h:38,
                 from /opt/ros/noetic/include/control_toolbox/pid.h:39,
                 from /opt/ros/noetic/include/gazebo_ros_control/default_robot_hw_sim.h:45,
                 from /root/catkin_ws/src/utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/include/cob_gazebo_ros_control/hwi_switch_robot_hw_sim.h:23,
                 from /root/catkin_ws/src/utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/src/hwi_switch_robot_hw_sim.cpp:19:
/usr/include/c++/9/tuple:1320:5: note: candidate: ‘template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >& std::get(std::tuple<_Elements ...>&)’
 1320 |     get(tuple<_Elements...>& __t) noexcept
      |     ^~~
/usr/include/c++/9/tuple:1320:5: note:   template argument deduction/substitution failed:
/usr/include/c++/9/tuple:1326:5: note: candidate: ‘template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >& std::get(const std::tuple<_Elements ...>&)’
 1326 |     get(const tuple<_Elements...>& __t) noexcept
      |     ^~~
/usr/include/c++/9/tuple:1326:5: note:   template argument deduction/substitution failed:
/usr/include/c++/9/tuple:1332:5: note: candidate: ‘template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >&& std::get(std::tuple<_Elements ...>&&)’
 1332 |     get(tuple<_Elements...>&& __t) noexcept
      |     ^~~
/usr/include/c++/9/tuple:1332:5: note:   template argument deduction/substitution failed:
/usr/include/c++/9/tuple:1341:5: note: candidate: ‘template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >&& std::get(const std::tuple<_Elements ...>&&)’
 1341 |     get(const tuple<_Elements...>&& __t) noexcept
      |     ^~~
/usr/include/c++/9/tuple:1341:5: note:   template argument deduction/substitution failed:
In file included from /opt/ros/noetic/include/ros/message.h:38,
                 from /opt/ros/noetic/include/ros/publisher.h:33,
                 from /opt/ros/noetic/include/ros/node_handle.h:32,
                 from /opt/ros/noetic/include/ros/ros.h:45,
                 from /opt/ros/noetic/include/control_toolbox/pid.h:39,
                 from /opt/ros/noetic/include/gazebo_ros_control/default_robot_hw_sim.h:45,
                 from /root/catkin_ws/src/utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/include/cob_gazebo_ros_control/hwi_switch_robot_hw_sim.h:23,
                 from /root/catkin_ws/src/utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/src/hwi_switch_robot_hw_sim.cpp:19:
/usr/include/boost/array.hpp:440:7: note: candidate: ‘template<long unsigned int Idx, class T, long unsigned int N> T& std::get(boost::array<T, N>&)’
  440 |    T &get(boost::array<T,N> &arr) BOOST_NOEXCEPT {
      |       ^~~
/usr/include/boost/array.hpp:440:7: note:   template argument deduction/substitution failed:
/usr/include/boost/array.hpp:446:13: note: candidate: ‘template<long unsigned int Idx, class T, long unsigned int N> const T& std::get(const boost::array<T, N>&)’
  446 |    const T &get(const boost::array<T,N> &arr) BOOST_NOEXCEPT {
      |             ^~~
/usr/include/boost/array.hpp:446:13: note:   template argument deduction/substitution failed:
[ 80%] Linking CXX executable /root/catkin_ws/devel/lib/flatland_server/flatland_server
[ 80%] Built target flatland_server
[ 80%] Building CXX object utils/flatland/flatland_plugins/CMakeFiles/flatland_plugins_lib.dir/src/model_tf_publisher.cpp.o
[ 80%] Building CXX object utils/pedsim_ros/2ndparty/spencer_tracking_rviz_plugin/CMakeFiles/spencer_tracking_rviz_plugin.dir/src/person_display_common.cpp.o
[ 80%] Building CXX object utils/flatland/flatland_plugins/CMakeFiles/flatland_plugins_lib.dir/src/update_timer.cpp.o
[ 80%] Building CXX object utils/flatland/flatland_plugins/CMakeFiles/flatland_plugins_lib.dir/src/bumper.cpp.o
[ 80%] Building CXX object utils/pedsim_ros/2ndparty/spencer_tracking_rviz_plugin/CMakeFiles/spencer_tracking_rviz_plugin.dir/src/tracked_persons_cache.cpp.o
[ 80%] Building CXX object utils/pedsim_ros/2ndparty/spencer_tracking_rviz_plugin/CMakeFiles/spencer_tracking_rviz_plugin.dir/src/visuals/person_visual.cpp.o
make[2]: *** [utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/CMakeFiles/hwi_switch_robot_hw_sim.dir/build.make:76: utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/CMakeFiles/hwi_switch_robot_hw_sim.dir/src/hwi_switch_robot_hw_sim.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:24785: utils/3rd-party-robot-packages/cob4/cob_gazebo_ros_control/CMakeFiles/hwi_switch_robot_hw_sim.dir/all] Error 2
[ 80%] Building CXX object utils/pedsim_ros/2ndparty/spencer_tracking_rviz_plugin/CMakeFiles/spencer_tracking_rviz_plugin.dir/src/moc_detected_persons_display.cpp.o
[ 81%] Building CXX object utils/flatland/flatland_plugins/CMakeFiles/flatland_plugins_lib.dir/src/tween.cpp.o
[ 81%] Building CXX object utils/flatland/flatland_plugins/CMakeFiles/flatland_plugins_lib.dir/src/bool_sensor.cpp.o
[ 81%] Building CXX object utils/pedsim_ros/2ndparty/spencer_tracking_rviz_plugin/CMakeFiles/spencer_tracking_rviz_plugin.dir/src/moc_tracked_persons_display.cpp.o
[ 81%] Building CXX object utils/pedsim_ros/2ndparty/spencer_tracking_rviz_plugin/CMakeFiles/spencer_tracking_rviz_plugin.dir/src/moc_tracked_groups_display.cpp.o
[ 81%] Building CXX object utils/flatland/flatland_plugins/CMakeFiles/flatland_plugins_lib.dir/src/world_modifier.cpp.o
[ 81%] Building CXX object utils/flatland/flatland_plugins/CMakeFiles/flatland_plugins_lib.dir/src/world_random_wall.cpp.o
[ 81%] Building CXX object utils/flatland/flatland_plugins/CMakeFiles/flatland_plugins_lib.dir/src/gps.cpp.o
[ 81%] Linking CXX executable /root/catkin_ws/devel/lib/light_scan_sim/light_scan_sim_node
[ 81%] Built target light_scan_sim_node
[ 81%] Building CXX object utils/pedsim_ros/2ndparty/spencer_tracking_rviz_plugin/CMakeFiles/spencer_tracking_rviz_plugin.dir/src/moc_social_relations_display.cpp.o
[ 82%] Building CXX object utils/pedsim_ros/2ndparty/spencer_tracking_rviz_plugin/CMakeFiles/spencer_tracking_rviz_plugin.dir/src/moc_social_activities_display.cpp.o
[ 82%] Building CXX object utils/pedsim_ros/2ndparty/spencer_tracking_rviz_plugin/CMakeFiles/spencer_tracking_rviz_plugin.dir/src/moc_human_attributes_display.cpp.o
[ 82%] Building CXX object utils/pedsim_ros/2ndparty/spencer_tracking_rviz_plugin/CMakeFiles/spencer_tracking_rviz_plugin.dir/src/moc_person_display_common.cpp.o
[ 82%] Building CXX object utils/pedsim_ros/2ndparty/spencer_tracking_rviz_plugin/CMakeFiles/spencer_tracking_rviz_plugin.dir/src/moc_additional_topic_subscriber.cpp.o
[ 82%] Linking CXX shared library /root/catkin_ws/devel/lib/libflatland_plugins_lib.so
[ 82%] Built target flatland_plugins_lib
[ 82%] Linking CXX shared library /root/catkin_ws/devel/lib/libspencer_tracking_rviz_plugin.so
[ 82%] Built target spencer_tracking_rviz_plugin
[ 82%] Linking CXX shared library /root/catkin_ws/devel/lib/libmpc_local_planner.so
[ 82%] Built target mpc_local_planner
make: *** [Makefile:146: all] Error 2
Invoking "make -j16 -l16" failed

@Jacenty00
Copy link
Contributor

It looks like the error is coming from one of the packages in /root/catkin_ws/utils/3rd-party-robot-packages. You could try deleting that folder and see whether that resolves the issue. But it seems to me like the real cause is something else, as I had never encountered this error before.

How did you install ROS inside docker ? Did you use the noetic-desktop-full version (That is what I've used so far) ?
Otherwise, you could also try using our Dockerfile and check whether the issue still exists.

@ReykCS
Copy link
Contributor

ReykCS commented Apr 5, 2023

After I found that Cuda has problem, I re-setup on the new Docker container using related cuda version.

Environment is : NVIDIA-SMI 525.60.13 Driver Version: 525.60.13 CUDA Version: 12.0 Docker image : nvidia/cuda:12.0.0-devel-ubuntu20.04 -> I matched the cuda version between Docker and nvidia-smi.

But, then, I couldn't catkin_make. In the poetry shell environment, I met several build errors whenever I re-launch "catkin_make".

1.

[ 33%] Built target mpc_local_planner_optimal_control
[ 33%] Linking CXX shared library /root/catkin_ws/devel/lib/libmapping.so
[ 33%] Built target mapping
make: *** [Makefile:146: all] Error 2

2.

[ 70%] Linking CXX executable /root/catkin_ws/devel/lib/ira_laser_tools/laserscan_virtualizer
[ 70%] Built target laserscan_multi_merger
[ 70%] Built target laserscan_virtualizer
make: *** [Makefile:146: all] Error 2
Invoking "make -j16 -l16" failed

3.

[ 77%] Linking CXX shared library /root/catkin_ws/devel/lib/libspencer_tracking_rviz_plugin.so
[ 77%] Built target spencer_tracking_rviz_plugin
[ 77%] Linking CXX shared library /root/catkin_ws/devel/lib/libmpc_local_planner.so
[ 77%] Built target mpc_local_planner
make: *** [Makefile:146: all] Error 2
Invoking "make -j16 -l16" failed

What exactly did you change here? Your Cuda version or your PyTorch version? I would highly recommend you to not downgrade cuda but instead install the correct pytorch version.

@doyeon-danny
Copy link
Author

It looks like the error is coming from one of the packages in /root/catkin_ws/utils/3rd-party-robot-packages. You could try deleting that folder and see whether that resolves the issue. But it seems to me like the real cause is something else, as I had never encountered this error before.

How did you install ROS inside docker ? Did you use the noetic-desktop-full version (That is what I've used so far) ? Otherwise, you could also try using our Dockerfile and check whether the issue still exists.

Yes I made a container using Cuda12.0 Docker image and installes noetic-desktop-full version.
And also I conducted it using your Dockerfile. I thought I could have solved this problem with the Dockerfile.
As you told me, I think this problem happened from another reason. I guess it may be because of Cuda or something.

@doyeon-danny
Copy link
Author

After I found that Cuda has problem, I re-setup on the new Docker container using related cuda version.
Environment is : NVIDIA-SMI 525.60.13 Driver Version: 525.60.13 CUDA Version: 12.0 Docker image : nvidia/cuda:12.0.0-devel-ubuntu20.04 -> I matched the cuda version between Docker and nvidia-smi.
But, then, I couldn't catkin_make. In the poetry shell environment, I met several build errors whenever I re-launch "catkin_make".
1.

[ 33%] Built target mpc_local_planner_optimal_control
[ 33%] Linking CXX shared library /root/catkin_ws/devel/lib/libmapping.so
[ 33%] Built target mapping
make: *** [Makefile:146: all] Error 2

2.

[ 70%] Linking CXX executable /root/catkin_ws/devel/lib/ira_laser_tools/laserscan_virtualizer
[ 70%] Built target laserscan_multi_merger
[ 70%] Built target laserscan_virtualizer
make: *** [Makefile:146: all] Error 2
Invoking "make -j16 -l16" failed

3.

[ 77%] Linking CXX shared library /root/catkin_ws/devel/lib/libspencer_tracking_rviz_plugin.so
[ 77%] Built target spencer_tracking_rviz_plugin
[ 77%] Linking CXX shared library /root/catkin_ws/devel/lib/libmpc_local_planner.so
[ 77%] Built target mpc_local_planner
make: *** [Makefile:146: all] Error 2
Invoking "make -j16 -l16" failed

What exactly did you change here? Your Cuda version or your PyTorch version? I would highly recommend you to not downgrade cuda but instead install the correct pytorch version.

Hi, I only changed Docker’s cuda version from cudagl-11.04 to cuda12.0 to match with my PC’s.

@CAI23sbP
Copy link

CAI23sbP commented Apr 15, 2023

@doyeon-danny
I think you should shout down every programs in your computer ,and then catkin_make.
If it does not work, then write " catkin_make -j8" in your cmd.
I hope that it will be working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants