-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
solve some bugs and change some metrics name or defination
- Loading branch information
1 parent
c85581e
commit dfebe71
Showing
199 changed files
with
47,218 additions
and
174 deletions.
There are no files selected for viewing
Binary file modified
BIN
+22 Bytes
(100%)
src/ThirdP/rotors_simulator/rotors_gazebo/scripts/__pycache__/names.cpython-38.pyc
Binary file not shown.
Binary file modified
BIN
+22 Bytes
(100%)
...hirdP/rotors_simulator/rotors_gazebo/scripts/__pycache__/substitution_args.cpython-38.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<arg name="quad_name" default="iris"/> | ||
|
||
<arg name="mav_name" default="$(arg quad_name)"/> | ||
<arg name="model" value="$(find rotors_description)/urdf/mav_generic_odometry_sensor.gazebo"/> | ||
<arg name="world_name" value="$(find avoid_manage)/resources/worlds/simple.world"/> | ||
|
||
<arg name="use_unity_editor" default="false" /> | ||
<arg name="paused" value="false"/> | ||
<arg name="gui" value="false"/> | ||
<arg name="use_mpc" default="false"/> | ||
<arg name="use_ground_truth" default="true"/> | ||
<arg name="enable_ground_truth" default="true"/> | ||
<arg name="enable_command_feedthrough" default="true"/> | ||
<arg name="custom_models" default="$(find avoid_manage)/resources"/> | ||
|
||
<arg name="enable_logging" default="false"/> | ||
<arg name="log_file" default="$(arg mav_name)"/> | ||
|
||
<arg name="x_init" default="0"/> | ||
<arg name="y_init" default="0"/> | ||
|
||
<arg name="debug" default="false"/> | ||
<arg name="verbose" default="false"/> | ||
|
||
|
||
<!-- Gazebo stuff to spawn the world !--> | ||
<env name="GAZEBO_MODEL_PATH" | ||
value="${GAZEBO_MODEL_PATH}:$(find rotors_gazebo)/models:$(arg custom_models)"/> | ||
<env name="GAZEBO_RESOURCE_PATH" | ||
value="${GAZEBO_RESOURCE_PATH}:$(find rotors_gazebo)/models"/> | ||
<include file="$(find gazebo_ros)/launch/empty_world.launch"> | ||
<arg name="world_name" value="$(arg world_name)" /> | ||
<arg name="debug" value="$(arg debug)" /> | ||
<arg name="paused" value="$(arg paused)" /> | ||
<arg name="gui" value="$(arg gui)" /> | ||
<arg name="verbose" value="$(arg verbose)"/> | ||
</include> | ||
|
||
<!-- RotorS stuff to spawn the quadrotor !--> | ||
<group ns="$(arg mav_name)"> | ||
<include file="$(find rotors_gazebo)/launch/spawn_mav.launch"> | ||
<arg name="mav_name" value="$(arg mav_name)" /> | ||
<arg name="model" value="$(arg model)" /> | ||
<arg name="enable_logging" value="$(arg enable_logging)" /> | ||
<arg name="enable_ground_truth" value="$(arg enable_ground_truth)" /> | ||
<arg name="log_file" value="$(arg log_file)"/> | ||
<arg name="x" value="$(arg x_init)" /> | ||
<arg name="y" value="$(arg y_init)" /> | ||
</include> | ||
</group> | ||
|
||
<!-- RPG stuff !--> | ||
<group ns="$(arg quad_name)" > | ||
|
||
<!-- RPG RotorS interface. --> | ||
<node pkg="rpg_rotors_interface" type="iris_rotors_interface" | ||
name="iris_rotors_interface" output="screen" > | ||
<rosparam file="$(find rpg_rotors_interface)/parameters/iris_rotors_interface.yaml" /> | ||
<!-- .. --> | ||
<remap from="odometry" to="ground_truth/odometry" /> | ||
<remap from="rpg_rotors_interface/arm" to="bridge/arm" /> | ||
</node> | ||
|
||
<!-- Autopilot --> | ||
<group unless="$(arg use_mpc)"> | ||
<node pkg="autopilot" type="autopilot" name="autopilot" output="screen"> | ||
<rosparam file="$(find state_predictor)/parameters/hummingbird.yaml" /> | ||
<rosparam file="$(find rpg_rotors_interface)/parameters/position_controller.yaml" /> | ||
<rosparam file="$(find rpg_rotors_interface)/parameters/autopilot.yaml" /> | ||
|
||
<param name="position_controller/use_rate_mode" value="True" /> | ||
|
||
<param name="velocity_estimate_in_world_frame" value="false" /> | ||
<param name="state_estimate_timeout" value="0.1" /> | ||
<param name="control_command_delay" value="0.05" /> | ||
<param name="enable_command_feedthrough" value="$(arg enable_command_feedthrough)" /> | ||
|
||
<remap from="autopilot/state_estimate" to="ground_truth/odometry" /> | ||
</node> | ||
</group> | ||
|
||
<group if="$(arg use_mpc)"> | ||
<node pkg="rpg_mpc" type="autopilot_mpc_instance" name="autopilot" output="screen"> | ||
<rosparam file="$(find state_predictor)/parameters/hummingbird.yaml" /> | ||
<rosparam file="$(find rpg_mpc)/parameters/default.yaml" /> | ||
<rosparam file="$(find rpg_rotors_interface)/parameters/autopilot.yaml" /> | ||
|
||
<param name="velocity_estimate_in_world_frame" value="false" /> | ||
<param name="state_estimate_timeout" value="0.1" /> | ||
<param name="control_command_delay" value="0.05" /> | ||
<param name="enable_command_feedthrough" value="$(arg enable_command_feedthrough)" /> | ||
|
||
<remap from="autopilot/state_estimate" to="ground_truth/odometry" /> | ||
</node> | ||
</group> | ||
|
||
<node pkg="avoid_manage" type="avoid_manage_node" name="avoid_manage_node" output="screen"> | ||
<rosparam file="$(find avoid_manage)/params/task_indoor.yaml" /> | ||
<param name="quad_name" value="$(arg quad_name)" /> | ||
<remap from="flight_pilot/state_estimate" to="ground_truth/odometry" /> | ||
</node> | ||
|
||
<node pkg="unity_scene" type="AvoidBench.x86_64" name="avoidbench_render" unless="$(arg use_unity_editor)"> | ||
</node> | ||
|
||
<node name="rqt_quad_gui" pkg="rqt_gui" type="rqt_gui" | ||
args="-s rqt_quad_gui.basic_flight.BasicFlight --args | ||
--quad_name $(arg quad_name)" output="screen"/> | ||
|
||
</group> | ||
|
||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
114 changes: 114 additions & 0 deletions
114
src/avoidbench/avoid_manage/launch/pilot/test_rl.launch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<arg name="quad_name" default="iris"/> | ||
|
||
<arg name="mav_name" default="$(arg quad_name)"/> | ||
<arg name="model" value="$(find rotors_description)/urdf/mav_generic_odometry_sensor.gazebo"/> | ||
<arg name="world_name" value="$(find avoid_manage)/resources/worlds/simple.world"/> | ||
|
||
<arg name="use_unity_editor" default="true" /> | ||
<arg name="paused" value="false"/> | ||
<arg name="gui" value="false"/> | ||
<arg name="use_mpc" default="false"/> | ||
<arg name="use_ground_truth" default="true"/> | ||
<arg name="enable_ground_truth" default="true"/> | ||
<arg name="enable_command_feedthrough" default="true"/> | ||
<arg name="custom_models" default="$(find avoid_manage)/resources"/> | ||
|
||
<arg name="enable_logging" default="false"/> | ||
<arg name="log_file" default="$(arg mav_name)"/> | ||
|
||
<arg name="x_init" default="0"/> | ||
<arg name="y_init" default="0"/> | ||
|
||
<arg name="debug" default="false"/> | ||
<arg name="verbose" default="false"/> | ||
|
||
|
||
<!-- Gazebo stuff to spawn the world !--> | ||
<env name="GAZEBO_MODEL_PATH" | ||
value="${GAZEBO_MODEL_PATH}:$(find rotors_gazebo)/models:$(arg custom_models)"/> | ||
<env name="GAZEBO_RESOURCE_PATH" | ||
value="${GAZEBO_RESOURCE_PATH}:$(find rotors_gazebo)/models"/> | ||
<include file="$(find gazebo_ros)/launch/empty_world.launch"> | ||
<arg name="world_name" value="$(arg world_name)" /> | ||
<arg name="debug" value="$(arg debug)" /> | ||
<arg name="paused" value="$(arg paused)" /> | ||
<arg name="gui" value="$(arg gui)" /> | ||
<arg name="verbose" value="$(arg verbose)"/> | ||
</include> | ||
|
||
<!-- RotorS stuff to spawn the quadrotor !--> | ||
<group ns="$(arg mav_name)"> | ||
<include file="$(find rotors_gazebo)/launch/spawn_mav.launch"> | ||
<arg name="mav_name" value="$(arg mav_name)" /> | ||
<arg name="model" value="$(arg model)" /> | ||
<arg name="enable_logging" value="$(arg enable_logging)" /> | ||
<arg name="enable_ground_truth" value="$(arg enable_ground_truth)" /> | ||
<arg name="log_file" value="$(arg log_file)"/> | ||
<arg name="x" value="$(arg x_init)" /> | ||
<arg name="y" value="$(arg y_init)" /> | ||
</include> | ||
</group> | ||
|
||
<!-- RPG stuff !--> | ||
<group ns="$(arg quad_name)" > | ||
|
||
<!-- RPG RotorS interface. --> | ||
<node pkg="rpg_rotors_interface" type="iris_rotors_interface" | ||
name="iris_rotors_interface" output="screen" > | ||
<rosparam file="$(find rpg_rotors_interface)/parameters/iris_rotors_interface.yaml" /> | ||
<!-- .. --> | ||
<remap from="odometry" to="ground_truth/odometry" /> | ||
<remap from="rpg_rotors_interface/arm" to="bridge/arm" /> | ||
</node> | ||
|
||
<!-- Autopilot --> | ||
<group unless="$(arg use_mpc)"> | ||
<node pkg="autopilot" type="autopilot" name="autopilot" output="screen"> | ||
<rosparam file="$(find state_predictor)/parameters/hummingbird.yaml" /> | ||
<rosparam file="$(find rpg_rotors_interface)/parameters/position_controller.yaml" /> | ||
<rosparam file="$(find rpg_rotors_interface)/parameters/autopilot.yaml" /> | ||
|
||
<param name="position_controller/use_rate_mode" value="True" /> | ||
|
||
<param name="velocity_estimate_in_world_frame" value="false" /> | ||
<param name="state_estimate_timeout" value="0.1" /> | ||
<param name="control_command_delay" value="0.05" /> | ||
<param name="enable_command_feedthrough" value="$(arg enable_command_feedthrough)" /> | ||
|
||
<remap from="autopilot/state_estimate" to="ground_truth/odometry" /> | ||
</node> | ||
</group> | ||
|
||
<group if="$(arg use_mpc)"> | ||
<node pkg="rpg_mpc" type="autopilot_mpc_instance" name="autopilot" output="screen"> | ||
<rosparam file="$(find state_predictor)/parameters/hummingbird.yaml" /> | ||
<rosparam file="$(find rpg_mpc)/parameters/default.yaml" /> | ||
<rosparam file="$(find rpg_rotors_interface)/parameters/autopilot.yaml" /> | ||
|
||
<param name="velocity_estimate_in_world_frame" value="false" /> | ||
<param name="state_estimate_timeout" value="0.1" /> | ||
<param name="control_command_delay" value="0.05" /> | ||
<param name="enable_command_feedthrough" value="$(arg enable_command_feedthrough)" /> | ||
|
||
<remap from="autopilot/state_estimate" to="ground_truth/odometry" /> | ||
</node> | ||
</group> | ||
|
||
<node pkg="avoid_manage" type="rl_test_node" name="rl_test_node" output="screen"> | ||
<rosparam file="$(find avoid_manage)/params/test_rl.yaml" /> | ||
<param name="quad_name" value="$(arg quad_name)" /> | ||
<remap from="flight_pilot/state_estimate" to="ground_truth/odometry" /> | ||
</node> | ||
|
||
<node pkg="unity_scene" type="AvoidBench.x86_64" name="avoidbench_render" unless="$(arg use_unity_editor)"> | ||
</node> | ||
|
||
<node name="rqt_quad_gui" pkg="rqt_gui" type="rqt_gui" | ||
args="-s rqt_quad_gui.basic_flight.BasicFlight --args | ||
--quad_name $(arg quad_name)" output="screen"/> | ||
|
||
</group> | ||
|
||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.