Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/rover simulation #158

Closed
wants to merge 14 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions documents/installation/required_packages.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Required Packages
This is a general list of various packages that we know will be need at some point. Run: `sudo apt-get install` followed by the name of the package for each of these.
Alternatively, use the requirements.bash script in the helper_scripts folder.

# Navigation Packages
sudo apt-get install ros-humble-navigation2
sudo apt-get install ros-humble-nav2-bringup
sudo apt-get install ros-humble-turtlebot3-gazebo


# Control Packages
sudo apt-get install ros-humble-ros2-control
sudo apt-get install ros-humble-ros2-controllers
sudo apt-get install ros-humble-gazebo-ros2-control
10 changes: 10 additions & 0 deletions helper_scripts/requirements.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Navigation Packages
sudo apt-get install ros-humble-navigation2
sudo apt-get install ros-humble-nav2-bringup
sudo apt-get install ros-humble-turtlebot3-gazebo


# Control Packages
sudo apt-get install ros-humble-ros2-control
sudo apt-get install ros-humble-ros2-controllers
sudo apt-get install ros-humble-gazebo-ros2-control
2 changes: 2 additions & 0 deletions urc_bringup/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ install(
DIRECTORY
launch
config
world
rviz
DESTINATION share/${PROJECT_NAME}/
)

Expand Down
3 changes: 3 additions & 0 deletions urc_bringup/config/hardware_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
hardware_config:
use_simulation: true
use_simplified_model: true
82 changes: 82 additions & 0 deletions urc_bringup/config/ros2_control_simple.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
controller_manager:
ros__parameters:
update_rate: 200

imu_broadcaster:
type: urc_controllers/IMUBroadcaster

status_light_controller:
type: urc_controllers/StatusLightController

rover_drivetrain_controller:
type: diff_drive_controller/DiffDriveController

bms_broadcaster:
type: urc_controllers/BMSBroadcaster

joint_state_broadcaster:
type: joint_state_broadcaster/JointStateBroadcaster

joint_trajectory_controller:
type: joint_trajectory_controller/JointTrajectoryController

joint_state_broadcaster:
ros__parameters:
type: joint_state_broadcaster/JointStateBroadcaster

imu_broadcaster:
ros__parameters:
imu_name: imu_sensor

bms_broadcaster:
ros__parameters:
bms_name: battery_management
cell_num: 6

status_light_controller:
ros__parameters:
status_light_name: status_light

rover_drivetrain_controller:
ros__parameters:
left_wheel_names:
[
"left_wheel_joint"
]
right_wheel_names:
[
"right_wheel_joint"
]

pose_covariance_diagonal:
[0.001, 0.001, 1000000.0, 1000000.0, 1000000.0, 1000.0]
twist_covariance_diagonal:
[0.001, 0.001, 1000000.0, 1000000.0, 1000000.0, 1000.0]

position_feedback: false
open_loop: false

wheel_seperation: 0.5

wheel_radius: 0.20
cmd_vel_timeout: 0.5
# Velocity and acceleration limits
# Whenever a min_* is unspecified, default to -max_*
linear:
x:
has_velocity_limits: true
max_velocity: 4.0 # m/s
min_velocity: -0.5 # m/s
has_acceleration_limits: true
max_acceleration: 0.8 # m/s^2
min_acceleration: -0.4 # m/s^2
has_jerk_limits: true
max_jerk: 5.0 # m/s^3
angular:
z:
has_velocity_limits: true
max_velocity: 1.7 # rad/s
has_acceleration_limits: true
max_acceleration: 1.5 # rad/s^2
has_jerk_limits: true
max_jerk: 2.5 # rad/s^3
86 changes: 86 additions & 0 deletions urc_bringup/config/ros2_control_walli.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
controller_manager:
ros__parameters:
update_rate: 200

imu_broadcaster:
type: urc_controllers/IMUBroadcaster

status_light_controller:
type: urc_controllers/StatusLightController

rover_drivetrain_controller:
type: diff_drive_controller/DiffDriveController

bms_broadcaster:
type: urc_controllers/BMSBroadcaster

joint_state_broadcaster:
type: joint_state_broadcaster/JointStateBroadcaster

joint_trajectory_controller:
type: joint_trajectory_controller/JointTrajectoryController

joint_state_broadcaster:
ros__parameters:
type: joint_state_broadcaster/JointStateBroadcaster

imu_broadcaster:
ros__parameters:
imu_name: imu_sensor

bms_broadcaster:
ros__parameters:
bms_name: battery_management
cell_num: 6

status_light_controller:
ros__parameters:
status_light_name: status_light

rover_drivetrain_controller:
ros__parameters:
left_wheel_names:
[
"left_front_wheel_joint",
"left_center_wheel_joint",
"left_rear_wheel_joint",
]
right_wheel_names:
[
"right_front_wheel_joint",
"right_center_wheel_joint",
"right_rear_wheel_joint",
]

pose_covariance_diagonal:
[0.001, 0.001, 1000000.0, 1000000.0, 1000000.0, 1000.0]
twist_covariance_diagonal:
[0.001, 0.001, 1000000.0, 1000000.0, 1000000.0, 1000.0]

position_feedback: false
open_loop: false

wheel_seperation: 0.5

wheel_radius: 0.20
cmd_vel_timeout: 0.5
# Velocity and acceleration limits
# Whenever a min_* is unspecified, default to -max_*
linear:
x:
has_velocity_limits: true
max_velocity: 4.0 # m/s
min_velocity: -0.5 # m/s
has_acceleration_limits: true
max_acceleration: 0.8 # m/s^2
min_acceleration: -0.4 # m/s^2
has_jerk_limits: true
max_jerk: 5.0 # m/s^3
angular:
z:
has_velocity_limits: true
max_velocity: 1.7 # rad/s
has_acceleration_limits: true
max_acceleration: 1.5 # rad/s^2
has_jerk_limits: true
max_jerk: 2.5 # rad/s^3
Loading
Loading