TempleRAIL / drl_vo_nav

[T-RO 2023] DRL-VO: Learning to Navigate Through Crowded Dynamic Scenes Using Velocity Obstacles
https://doi.org/10.1109/TRO.2023.3257549
GNU General Public License v3.0
149 stars 11 forks source link

Question: How to use another map? #16

Closed CAI23sbP closed 10 months ago

CAI23sbP commented 10 months ago

@zzuxzt , Hi! I have question that How to use another map? In your paper there were existing 5 maps.

image I wanted to use it, so i searched your code which accepted another map. `

` When i changed map_file, world name, scene file.but map is not changing in gazebo, and robot init position. could you tell me how to change map?

zzuxzt commented 10 months ago

Yeah, you need to change the scene_file, world_name, initial_pose, map_file in "drl_vo_nav.launch" file to do that. For example, the below configurations can change the map to the Autolab environment:

  <arg name="scene_file" default="$(find pedsim_simulator)/scenarios/autolab/autolab_25.xml"/>
  <arg name="world_name" default="$(find pedsim_gazebo_plugin)/worlds/autolab.world"/>
  <arg name="gui" default="true" doc="Bring up the Gazebo graphical interface"/>
  <arg name="pose_initial_x" default="1.0"/> 
  <arg name="pose_initial_y" default="1.0"/>
  <arg name="map_file" default="$(find robot_gazebo)/maps/gazebo_autolab/gazebo_autolab.yaml"/>
  <arg name="initial_pose_x" default="0.0"/>
  <arg name="initial_pose_y" default="0.0"/>
  <arg name="initial_pose_a" default="0.0"/>
tkddnjs98 commented 10 months ago

Another Question I tried using other robot and I found something interesting. What are the roles of "nodelet" and "yocs velocity smoother?" I think the system takes both of DWAlocalplanner's output and drl_vo's output but finally sends drl_vo's output to the robot.

zzuxzt commented 10 months ago

"nodelet" is used to implement multiplexing of multiple control topics (e.g. teleop cmd and move_base cmd). The "yocs velocity smoother" is used to smooth the raw control commands. Please take a look at the ROS introduction websites to know more details.

The DWA output was remapped to dwa_cmd (a lazy trick for not writing a new specific local planner), which was not used and was abandoned. Note that the system is only controlled by the drl_vo_cmd. If you wanna use the other robot, please remap the drl_vo_cmd to the control topic of that robot. One example can be found in my BARN-challenge repository.

tkddnjs98 commented 10 months ago

Thanks I really appreciate your comment. I'll take a look about it.