Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcalderon03 committed May 30, 2024
1 parent e3332a8 commit e9d8c48
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
3 changes: 2 additions & 1 deletion urc_bringup/launch/bringup.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def generate_launch_description():
xacro_file, mappings={"use_simulation": "false"}
)
robot_desc = robot_description_config.toxml()
gps_config = os.path.join(get_package_share_directory("urc_bringup"), "config", "nmea_serial_driver.yaml")
gps_config = os.path.join(get_package_share_directory("urc_bringup"),
"config", "nmea_serial_driver.yaml")

control_node = Node(
package="controller_manager",
Expand Down
2 changes: 1 addition & 1 deletion urc_bringup/launch/bringup_simulation.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def generate_launch_description():
controller_config_file_dir = os.path.join(
pkg_urc_bringup, "config", "ros2_control_walli.yaml"
)
world_path = os.path.join(pkg_urc_gazebo, "urdf/worlds/urc_world.world")
# world_path = os.path.join(pkg_urc_gazebo, "urdf/worlds/urc_world.world")
use_sim_time = LaunchConfiguration("use_sim_time", default="true")

xacro_file = os.path.join(
Expand Down
4 changes: 2 additions & 2 deletions urc_hw/src/hardware_interfaces/rover_drivetrain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ hardware_interface::return_type RoverDrivetrain::read(
const rclcpp::Time &,
const rclcpp::Duration &)
{

// RCLCPP_INFO(rclcpp::get_logger("test"),
// "%.5f, %.5f", velocity_rps_commands[0], velocity_rps_commands[1]);

Expand Down Expand Up @@ -140,7 +140,7 @@ hardware_interface::return_type RoverDrivetrain::write(
message.m6Setpoint = velocity_rps_commands[1] * ENCODER_CPR * -1;


// Junk
// Fill Required Fields
message.redEnabled = 0;
message.blueEnabled = 0;
message.greenEnabled = 0;
Expand Down
2 changes: 1 addition & 1 deletion urc_hw/src/hardware_interfaces/status_light.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ hardware_interface::return_type StatusLight::write(const rclcpp::Time &, const r
message.greenEnabled = (lightModes[2] != 0);
message.greenBlink = (lightModes[2] == 2);

// Junk
// Fill Required Fields
message.m1Setpoint = 0;
message.m2Setpoint = 0;
message.m3Setpoint = 0;
Expand Down
4 changes: 0 additions & 4 deletions urc_test/launch/odom_to_map_pose.launch.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import os
from launch import LaunchDescription
from launch_ros.actions import Node
from launch.substitutions import LaunchConfiguration
from launch.actions import DeclareLaunchArgument
from ament_index_python.packages import get_package_share_directory


def generate_launch_description():
Expand Down

0 comments on commit e9d8c48

Please sign in to comment.