clearpathrobotics / clearpath_common

BSD 3-Clause "New" or "Revised" License
17 stars 22 forks source link

Clearpath Husky A200 | TF tree not being picked up #54

Closed SOHAILMBS closed 9 months ago

SOHAILMBS commented 9 months ago

Please provide the following information:

Package: ros-humble-clearpath-common Status: install ok installed Priority: optional Section: misc Installed-Size: 41 Maintainer: Luis Camero lcamero@clearpathrobotics.com Architecture: amd64 Version: 0.2.1-1jammy.20231221.220210 Depends: ros-humble-clearpath-control, ros-humble-clearpath-description, ros-humble-clearpath-generator-common, ros-humble-clearpath-platform, ros-humble-ros-workspace Description: Clearpath Common Metapackage

To Reproduce

  1. Ensure Robot drivers are running as mentioned in documentation, and when we do ros2 topic list we get:
    /a200_1005/cmd_vel
    /a200_1005/diagnostics
    /a200_1005/diagnostics_agg
    /a200_1005/diagnostics_toplevel_state
    /a200_1005/joint_state_broadcaster/transition_event
    /a200_1005/joy_teleop/cmd_vel
    /a200_1005/joy_teleop/joy
    /a200_1005/joy_teleop/joy/set_feedback
    /a200_1005/platform/bms/state
    /a200_1005/platform/cmd_vel_unstamped
    /a200_1005/platform/driver/left/temperature
    /a200_1005/platform/driver/right/temperature
    /a200_1005/platform/dynamic_joint_states
    /a200_1005/platform/emergency_stop
    /a200_1005/platform/joint_states
    /a200_1005/platform/mcu/status
    /a200_1005/platform/mcu/status/power
    /a200_1005/platform/motors/left/temperature
    /a200_1005/platform/motors/right/temperature
    /a200_1005/platform/odom
    /a200_1005/platform/odom/filtered
    /a200_1005/platform/power
    /a200_1005/platform/safety_stop
    /a200_1005/platform/status
    /a200_1005/platform/wifi_connected
    /a200_1005/platform/wifi_status
    /a200_1005/platform_velocity_controller/transition_event
    /a200_1005/rc_teleop/cmd_vel
    /a200_1005/robot_description
    /a200_1005/set_pose
    /a200_1005/tf
    /a200_1005/tf_static
    /a200_1005/twist_marker_server/cmd_vel
    /a200_1005/twist_marker_server/feedback
    /a200_1005/twist_marker_server/update
    /parameter_events
    /rosout
  2. Check either rviz or tf tree
    ros2 run rqt_tf_tree rqt_tf_tree

    No tf data received

Other notes If I do ros2 topic echo /a200_1005/tf the tf data can be viewed but I am not sure how to view it in rviz as I think the ROS convention is to have the tf node without namespace but the tfs themselves with namespaces.

Please instruct on how to view the robot on Rviz with the modified tfs?

SOHAILMBS commented 9 months ago

The issue is resolved, I ran the clearpath_viz with the namespace and it worked. For other users the commands used were:

ros2 launch clearpath_viz view_robot.launch.py namespace:=a200_xxxxx

where the namespace configured in the file /etc/clearpath/robot.yaml