Skip to content

Commit

Permalink
Organize directories (umrover#43)
Browse files Browse the repository at this point in the history
* restructure

* updated config path in cmake lists

* removed useless localization node

* moved EARTH_RADIUS back to tf_utils

* linting

* removed vscode files, fixed paths and removed localization node in launch files

* deteled control.yaml which is no longer used

* changed launch and rviz filenames from short to full words

Co-authored-by: Riley Bridges <[email protected]>
  • Loading branch information
niwhsa9 and rbridges12 authored Jun 18, 2022
1 parent d85d279 commit b1b60ba
Show file tree
Hide file tree
Showing 33 changed files with 24 additions and 323 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ generate_messages(

## Generate dynamic reconfigure parameters in the 'cfg' folder
generate_dynamic_reconfigure_options(
cfg/DetectorParams.cfg
config/DetectorParams.cfg
)

###################################
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
53 changes: 0 additions & 53 deletions control.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion launch/full.launch
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<arg name="model" default="$(find mrover)/rover_description/rover.urdf" />
<arg name="gui" default="false" />
<param name="robot_description" command="xacro $(find mrover)/rover_description/rover.xacro" />
<arg name="rvizconfig" default="$(find mrover)/default.rviz" />
<arg name="rvizconfig" default="$(find mrover)/config/rviz/default.rviz" />

<node if="$(arg gui)" name="joint_state_publisher" pkg="joint_state_publisher_gui" type="joint_state_publisher_gui" />
<node unless="$(arg gui)" name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" />
Expand Down
13 changes: 6 additions & 7 deletions launch/loc.launch → launch/localization.launch
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
<arg name="model" default="$(find mrover)/rover_description/rover.urdf" />
<arg name="gui" default="false" />
<param name="robot_description" command="xacro $(find mrover)/rover_description/rover.xacro" />
<arg name="rvizconfig" default="$(find mrover)/loc.rviz" />
<arg name="rvizconfig" default="$(find mrover)/config/rviz/localization.rviz" />
<arg name="gazebo_config_path" default="$(find mrover)/config/gazebo" />

<node if="$(arg gui)" name="joint_state_publisher" pkg="joint_state_publisher_gui" type="joint_state_publisher_gui" />
<node unless="$(arg gui)" name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" />
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" />
<node name="rviz" pkg="rviz" type="rviz" args="-d $(arg rvizconfig)" required="true" />

<include file="$(find gazebo_ros)/launch/empty_world.launch">
<env name="GAZEBO_MODEL_PATH" value="$(find mrover)/env_description" />
<arg name="world_name" value="$(find mrover)/env_description/world.world" />
<env name="GAZEBO_MODEL_PATH" value="$(arg gazebo_config_path)/env_description" />
<arg name="world_name" value="$(arg gazebo_config_path)/env_description/world.world" />
<arg name="paused" value="false" />
<arg name="use_sim_time" value="true" />
<arg name="gui" value="true" />
Expand All @@ -37,9 +38,7 @@
odom: The topmost global frame
base_link: The rover
-->
<node name="mrover_localization" pkg="mrover" type="localization.py" />

<rosparam command="load" file="$(find mrover)/params/ekf_localization.yaml" />
<rosparam command="load" file="$(find mrover)/config/ekf_localization.yaml" />

<!-- Fuses together GPS position and IMU orientation with an Extended Kalman Filter (EKF) -->
<node pkg="robot_localization" type="ekf_localization_node" name="ekf_odom" clear_params="true">
Expand All @@ -59,4 +58,4 @@
<remap from="gps/filtered" to="gps/filtered" />
<remap from="odometry/gps" to="odometry/gps" />
</node>
</launch>
</launch>
2 changes: 1 addition & 1 deletion launch/minimal.launch
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<arg name="model" default="$(find mrover)/rover_description/rover.urdf" />
<arg name="gui" default="true" />
<param name="robot_description" command="xacro $(find mrover)/rover_description/rover.xacro" />
<arg name="rvizconfig" default="$(find mrover)/default.rviz" />
<arg name="rvizconfig" default="$(find mrover)/config/rviz/default.rviz" />

<node if="$(arg gui)" name="joint_state_publisher" pkg="joint_state_publisher_gui" type="joint_state_publisher_gui" />
<node unless="$(arg gui)" name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" />
Expand Down
13 changes: 6 additions & 7 deletions launch/nav.launch → launch/navigation.launch
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
<arg name="model" default="$(find mrover)/rover_description/rover.urdf" />
<arg name="gui" default="false" />
<param name="robot_description" command="xacro $(find mrover)/rover_description/rover.xacro" />
<arg name="rvizconfig" default="$(find mrover)/nav.rviz" />
<arg name="rvizconfig" default="$(find mrover)/config/rviz/navigation.rviz" />
<arg name="gazebo_config_path" default="$(find mrover)/config/gazebo" />

<node if="$(arg gui)" name="joint_state_publisher" pkg="joint_state_publisher_gui" type="joint_state_publisher_gui" />
<node unless="$(arg gui)" name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" />
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" />
<node name="rviz" pkg="rviz" type="rviz" args="-d $(arg rvizconfig)" required="true" />

<include file="$(find gazebo_ros)/launch/empty_world.launch">
<env name="GAZEBO_MODEL_PATH" value="$(find mrover)/env_description" />
<arg name="world_name" value="$(find mrover)/env_description/world.world" />
<env name="GAZEBO_MODEL_PATH" value="$(arg gazebo_config_path)/env_description" />
<arg name="world_name" value="$(arg gazebo_config_path)/env_description/world.world" />
<arg name="paused" value="false" />
<arg name="use_sim_time" value="true" />
<arg name="gui" value="true" />
Expand Down Expand Up @@ -48,9 +49,7 @@
odom: The topmost global frame
base_link: The rover
-->
<node name="mrover_localization" pkg="mrover" type="localization.py" />

<rosparam command="load" file="$(find mrover)/params/ekf_localization.yaml" />
<rosparam command="load" file="$(find mrover)/config/ekf_localization.yaml" />

<!-- Fuses together GPS position and IMU orientation with an Extended Kalman Filter (EKF) -->
<!-- Publishes a resulting tf entry between odom and base_link -->
Expand All @@ -72,4 +71,4 @@
<remap from="gps/filtered" to="gps/filtered" />
<remap from="odometry/gps" to="odometry/gps" />
</node>
</launch>
</launch>
7 changes: 4 additions & 3 deletions launch/percep.launch → launch/perception.launch
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
<arg name="model" default="$(find mrover)/rover_description/rover.urdf" />
<arg name="gui" default="false" />
<param name="robot_description" command="xacro $(find mrover)/rover_description/rover.xacro" />
<arg name="rvizconfig" default="$(find mrover)/percep.rviz" />
<arg name="rvizconfig" default="$(find mrover)/config/rviz/perception.rviz" />
<arg name="gazebo_config_path" default="$(find mrover)/config/gazebo" />

<node if="$(arg gui)" name="joint_state_publisher" pkg="joint_state_publisher_gui" type="joint_state_publisher_gui" />
<node unless="$(arg gui)" name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" />
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" />
<node name="rviz" pkg="rviz" type="rviz" args="-d $(arg rvizconfig)" required="true" />

<include file="$(find gazebo_ros)/launch/empty_world.launch">
<env name="GAZEBO_MODEL_PATH" value="$(find mrover)/env_description" />
<arg name="world_name" value="$(find mrover)/env_description/world.world" />
<env name="GAZEBO_MODEL_PATH" value="$(arg gazebo_config_path)/env_description" />
<arg name="world_name" value="$(arg gazebo_config_path)/env_description/world.world" />
<arg name="paused" value="false" />
<arg name="use_sim_time" value="true" />
<arg name="gui" value="true" />
Expand Down
7 changes: 4 additions & 3 deletions launch/teleop.launch
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
<arg name="model" default="$(find mrover)/rover_description/rover.urdf" />
<arg name="gui" default="false" />
<param name="robot_description" command="xacro $(find mrover)/rover_description/rover.xacro" />
<arg name="rvizconfig" default="$(find mrover)/default.rviz" />
<arg name="rvizconfig" default="$(find mrover)/config/rviz/default.rviz" />
<arg name="gazebo_config_path" default="$(find mrover)/config/gazebo" />

<node if="$(arg gui)" name="joint_state_publisher" pkg="joint_state_publisher_gui" type="joint_state_publisher_gui" />
<node unless="$(arg gui)" name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" />
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" />

<include file="$(find gazebo_ros)/launch/empty_world.launch">
<env name="GAZEBO_MODEL_PATH" value="$(find mrover)/env_description" />
<arg name="world_name" value="$(find mrover)/env_description/world.world" />
<env name="GAZEBO_MODEL_PATH" value="$(arg gazebo_config_path)/env_description" />
<arg name="world_name" value="$(arg gazebo_config_path)/env_description/world.world" />
<arg name="paused" value="false" />
<arg name="use_sim_time" value="true" />
<arg name="gui" value="true" />
Expand Down
Binary file removed mrover_arm_description/meshes/a-b.stl
Binary file not shown.
Binary file removed mrover_arm_description/meshes/chassis-a.stl
Binary file not shown.
10 changes: 0 additions & 10 deletions mrover_arm_description/mrover_arm.urdf

This file was deleted.

Binary file removed mrover_arm_description/mrover_arm/a-b.stl
Binary file not shown.
Binary file removed mrover_arm_description/mrover_arm/b-c.stl
Binary file not shown.
Binary file removed mrover_arm_description/mrover_arm/c-d.stl
Binary file not shown.
Binary file removed mrover_arm_description/mrover_arm/chassis-a.stl
Binary file not shown.
Binary file removed mrover_arm_description/mrover_arm/d-e.stl
Binary file not shown.
Binary file removed mrover_arm_description/mrover_arm/e-f.stl
Binary file not shown.
Binary file removed mrover_arm_description/mrover_arm/hand.stl
Binary file not shown.
Loading

0 comments on commit b1b60ba

Please sign in to comment.