Skip to content

Commit

Permalink
Use base_link in configs
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Dec 11, 2024
1 parent 5bea48b commit b8ccaf0
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Launch arguments are largely common to both simulation and physical robot. Howev
||| `wheel_type` | Specify the wheel type. If the selected wheel type is not 'custom', the wheel_config_path and controller_config_path arguments will be automatically adjusted and can be omitted. <br/> ***string:*** `WH01` (for Panther), `WH05` (for Lynx) (choices: `WH01`, `WH02`, `WH04`, `WH05`, `custom`) |
||| `x` | Initial robot position in the global 'x' axis. <br/> ***float:*** `0.0` |
||| `y` | Initial robot position in the global 'y' axis. <br/> ***float:***` -2.0` |
||| `z` | Initial robot position in the global 'z' axis. <br/> ***float:*** `0.0` |
||| `z` | Initial robot position in the global 'z' axis. <br/> ***float:*** `0.2` |
||| `roll` | Initial robot 'roll' orientation. <br/> ***float:*** `0.0` |
||| `pitch` | Initial robot 'pitch' orientation. <br/> ***float:*** `0.0` |
||| `yaw` | Initial robot 'yaw' orientation. <br/> ***float:*** `0.0` |
Expand Down
2 changes: 1 addition & 1 deletion husarion_ugv_controller/config/WH01_controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

publish_rate: 100.0
odom_frame_id: odom
base_frame_id: base_footprint
base_frame_id: base_link
twist_covariance_diagonal: [5.4e-5, 5.4e-5, 0.0, 0.0, 0.0, 1.9e-4] # Values measured experimentally

# Whether to use feedback or commands for odometry calculations
Expand Down
2 changes: 1 addition & 1 deletion husarion_ugv_controller/config/WH02_controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

publish_rate: 100.0
odom_frame_id: odom
base_frame_id: base_footprint
base_frame_id: base_link
twist_covariance_diagonal: [5.4e-5, 5.4e-5, 0.0, 0.0, 0.0, 1.9e-4] # Selected intuitively based on WH01 results

# Whether to use feedback or commands for odometry calculations
Expand Down
2 changes: 1 addition & 1 deletion husarion_ugv_controller/config/WH04_controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

publish_rate: 100.0
odom_frame_id: odom
base_frame_id: base_footprint
base_frame_id: base_link
twist_covariance_diagonal: [2.7e-5, 2.7e-5, 0.0, 0.0, 0.0, 1.0e-4] # Selected intuitively based on WH01 results

# Whether to use feedback or commands for odometry calculations
Expand Down
2 changes: 1 addition & 1 deletion husarion_ugv_controller/config/WH05_controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

publish_rate: 100.0
odom_frame_id: odom
base_frame_id: base_footprint
base_frame_id: base_link
twist_covariance_diagonal: [5.4e-5, 5.4e-5, 0.0, 0.0, 0.0, 1.9e-4] # Values measured experimentally

# Whether to use feedback or commands for odometry calculations
Expand Down
2 changes: 1 addition & 1 deletion husarion_ugv_description/launch/rviz.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def generate_launch_description():

rviz_config = ReplaceString(
source_file=rviz_config,
replacements={"<robot_namespace>/": ns_ext, "<robot_namespace>": namespace},
replacements={"<namespace>/": ns_ext, "<namespace>": namespace},
)

rviz_node = Node(
Expand Down
6 changes: 3 additions & 3 deletions husarion_ugv_description/rviz/husarion_ugv.rviz
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Visualization Manager:
Z: 0
Plane: XY
Plane Cell Count: 10
Reference Frame: <Fixed Frame>
Reference Frame: <namespace>/base_footprint
Value: true
Enabled: true
Name: Map
Expand Down Expand Up @@ -73,7 +73,7 @@ Visualization Manager:
Inertia: false
Mass: false
Name: RobotModel
TF Prefix: <robot_namespace>
TF Prefix: <namespace>
Update Interval: 0
Value: true
Visual Enabled: true
Expand Down Expand Up @@ -135,7 +135,7 @@ Visualization Manager:
Enabled: true
Global Options:
Background Color: 48; 48; 48
Fixed Frame: <robot_namespace>/odom
Fixed Frame: <namespace>/odom
Frame Rate: 30
Name: root
Tools:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
</visual>

<collision>
<origin xyz="0.0 0.0 0.0745" rpy="0.0 0.0 0.0" />
<origin xyz="0.0 0.0 0.09" rpy="0.0 0.0 0.0" />
<geometry>
<!-- TODO change when models ready -->
<!-- <mesh filename="package://husarion_ugv_descriptions/meshes/panther/body_collision.stl" /> -->
<box size="0.646 0.34 0.268" />
<box size="0.64 0.34 0.28" />
</geometry>
</collision>

Expand Down
2 changes: 1 addition & 1 deletion husarion_ugv_description/urdf/lynx/lynx_macro.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<xacro:property name="wheel_separation_x" value="0.35" />

<!-- INCLUDE ROBOT PARTS DEFINITIONS -->
<xacro:include filename="$(find husarion_ugv_descriptions)/urdf/lynx/body.urdf.xacro" ns="body" />
<xacro:include filename="$(find husarion_ugv_descriptions)/urdf/lynx/base.urdf.xacro" ns="body" />
<xacro:include filename="$(find husarion_ugv_descriptions)/urdf/common/gazebo.urdf.xacro" ns="gazebo" />
<xacro:include filename="$(find husarion_ugv_descriptions)/urdf/common/wheel.urdf.xacro" ns="wheel" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<xacro:property name="wheel_separation_x" value="0.44" />

<!-- INCLUDE ROBOT PARTS DEFINITIONS -->
<xacro:include filename="$(find husarion_ugv_descriptions)/urdf/panther/body.urdf.xacro" ns="body" />
<xacro:include filename="$(find husarion_ugv_descriptions)/urdf/panther/base.urdf.xacro" ns="body" />
<xacro:include filename="$(find husarion_ugv_descriptions)/urdf/common/gazebo.urdf.xacro" ns="gazebo" />
<xacro:include filename="$(find husarion_ugv_descriptions)/urdf/common/wheel.urdf.xacro" ns="wheel" />

Expand Down
2 changes: 1 addition & 1 deletion husarion_ugv_gazebo/launch/spawn_robot.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def generate_launch_description():

z = LaunchConfiguration("z")
declare_z_arg = DeclareLaunchArgument(
"z", default_value="0.0", description="Initial robot position in the global 'z' axis."
"z", default_value="0.2", description="Initial robot position in the global 'z' axis."
)

roll = LaunchConfiguration("roll")
Expand Down
2 changes: 1 addition & 1 deletion husarion_ugv_localization/config/enu_localization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

map_frame: map
odom_frame: odom
base_link_frame: base_footprint
base_link_frame: base_link
world_frame: odom
publish_tf: true
publish_acceleration: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

map_frame: map
odom_frame: odom
base_link_frame: base_footprint
base_link_frame: base_link
world_frame: odom
publish_tf: true
publish_acceleration: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

map_frame: map
odom_frame: odom
base_link_frame: base_footprint
base_link_frame: base_link
world_frame: odom
publish_tf: true
publish_acceleration: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

map_frame: map
odom_frame: odom
base_link_frame: base_footprint
base_link_frame: base_link
world_frame: odom
publish_tf: true
publish_acceleration: false
Expand Down

0 comments on commit b8ccaf0

Please sign in to comment.