Skip to content

Commit

Permalink
changed max vel wheel joint | changed testing velocities to the maxim…
Browse files Browse the repository at this point in the history
…um velocity

Signed-off-by: Jakub Delicat <[email protected]>
  • Loading branch information
delihus committed Oct 11, 2023
1 parent 92bd0a7 commit 9dde480
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions rosbot_bringup/config/ekf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ekf_filter_node:
imu0_differential: false
imu0_relative: true
imu0_remove_gravitational_acceleration: true

# [ADVANCED] The process noise covariance matrix can be difficult to tune, and can vary for each application, so it is
# exposed as a configuration parameter. This matrix represents the noise we add to the total error after each
# prediction step. The better the omnidirectional motion model matches your system, the smaller these values can be.
Expand Down Expand Up @@ -73,7 +73,7 @@ ekf_filter_node:
0.0, 0.0, 1e-9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 1e-9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 1e-8, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
Expand Down
2 changes: 1 addition & 1 deletion rosbot_description/urdf/wheel.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<child link="${prefix}_wheel_link" />
<origin xyz="${x} ${y} 0.0" rpy="0.0 0.0 0.0" />
<axis xyz="0.0 1.0 0.0" />
<limit effort="1.5" velocity="5.0" />
<limit effort="1.5" velocity="24.0" />
<dynamics damping="0.001" friction="0.001" />
</joint>

Expand Down
1 change: 0 additions & 1 deletion rosbot_gazebo/test/simulation_test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

from geometry_msgs.msg import Twist
from nav_msgs.msg import Odometry
import tf_transformations


class SimulationTestNode(Node):
Expand Down
6 changes: 4 additions & 2 deletions rosbot_gazebo/test/test_diff_drive_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ def test_diff_drive_simulation():
node.create_test_subscribers_and_publishers()
node.start_node_thread()

node.set_destination_speed(0.2, 0.0, 0.0)
# 0.9 m/s and 3.0 rad/s are controller's limits defined in
# rosbot_controller/config/diff_drive_controller.yaml
node.set_destination_speed(0.9, 0.0, 0.0)
msgs_received_flag = node.goal_x_event.wait(timeout=60.0)
assert msgs_received_flag, "ROSbot does not move properly in x direction!"

node.set_destination_speed(0.0, 0.0, 1.57)
node.set_destination_speed(0.0, 0.0, 3.0)
msgs_received_flag = node.goal_yaw_event.wait(timeout=60.0)
assert msgs_received_flag, "ROSbot does not rotate properly!"

Expand Down
8 changes: 5 additions & 3 deletions rosbot_gazebo/test/test_mecanum_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,17 @@ def test_mecanum_simulation():
node.create_test_subscribers_and_publishers()
node.start_node_thread()

node.set_destination_speed(0.2, 0.0, 0.0)
# 0.9 m/s and 3.0 rad/s are controller's limits defined in
# rosbot_controller/config/mecanum_drive_controller.yaml
node.set_destination_speed(0.9, 0.0, 0.0)
msgs_received_flag = node.goal_x_event.wait(timeout=60.0)
assert msgs_received_flag, "ROSbot does not move properly in x direction!"

node.set_destination_speed(0.0, 0.2, 0.0)
node.set_destination_speed(0.0, 0.9, 0.0)
msgs_received_flag = node.goal_y_event.wait(timeout=60.0)
assert msgs_received_flag, "ROSbot does not move properly in y direction!"

node.set_destination_speed(0.0, 0.0, 1.00)
node.set_destination_speed(0.0, 0.0, 3.0)
msgs_received_flag = node.goal_yaw_event.wait(timeout=60.0)
assert msgs_received_flag, "ROSbot does not rotate properly!"

Expand Down

0 comments on commit 9dde480

Please sign in to comment.