3⃣
Hardware Integration
  1. 1.
    Launch the robot's motor and sensor drivers.
  2. 2.
    Run rosnode list to find the names of the ROS nodes of the drivers.
  3. 3.
    Run rosnode info , where is the name of the nodes determined from step 2. Sample output:
    1
    $ rosnode info /motors_ctrl
    2
    --------------------------------------------------------------------------------
    3
    Node [/motors_ctrl]
    4
    Publications:
    5
    * /odom [nav_msgs/Odometry]
    6
    * /odom_euler [std_msgs/String]
    7
    * /robot_batt_perc [std_msgs/Int16]
    8
    * /rosout [rosgraph_msgs/Log]
    9
    * /tf [tf2_msgs/TFMessage]
    10
    11
    Subscriptions:
    12
    * /cmd_vel [geometry_msgs/Twist]
    Copied!
  4. 4.
    From the information displayed from running step 3, make sure that: Robot motor driver node subscribes to the topic /cmd_vel for velocity commands. Lidar driver node publishes laser data to the topic /scan
  5. 5.
    If the topic names are not set as in step 4, remap them in the launch files of the drivers by adding a line in the launch files in the following format:
    1
    <node ...
    2
    <remap from="<original topic name>" to="/cmd_vel"/>
    3
    </node>
    Copied!
  6. 6.
    While the robot base and lidar are launched, run rosrun rqt_tf_tree rqt_tf_tree and check that the frames are linked in this order: odom → base_link → laser.
  7. 7.
    If the frames of base_link and laser are not linked correctly, add the following line in the the launch file of the lidar drivers:
    1
    <node pkg="tf" type="static_transform_publisher" name="base_link_to_laser" args="0.22 0 0.1397 0 0 0 base_link laser 100" />
    Copied!
  8. 8.
    With the driver nodes running, run RVIZ using rosrun rviz rviz, do the following checks:
    1. 1.
      Laser data ("/scan") can be seen and is orientated in the correct direction.
    2. 2.
      Movement direction during teleoperation is correct.
    3. 3.
      Robot odometry ("/odom") is updating correctly during teleoperation.
Export as PDF
Copy link