-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Hi there, I am currently doing my project on ROS2. Here are some of the hardware I am using:
Mecanum base, esp32-WROOM-32 microcontroller, Cytron MDD10A (Generic 1) motor drivers, A2M8 RPLidar, and a raspberry Pi 4B as the main computer.
I have followed the steps in this page exactly up until the "test_acc" part. One small issue that I did encounter was "test_sensors" part. The values are not changing even when I tilt my robot and so on. (But i guess its fine since the Gyro isn't that important for my project).
The main issue that I've been facing for the past 2 weeks was this:
when I run:
ros2 launch linorobot2_bringup bringup.launch.py
or
ros2 launch linorobot2_bringup bringup.launch.py base_serial_port:=/dev/ttyUSB0 lidar_serial_port:=/dev/ttyUSB1 micro_ros_baudrate:=921600
it gives me this in the terminal:
it just waits infinitely for the robot_description to be published on the robot_description topic.
If it helps, this is my urdf file for my robot:
<?xml version="1.0"?>
<robot xmlns:xacro="http://ros.org/wiki/xacro">
<xacro:property name="base_length" value="0.49" />
<xacro:property name="base_width" value="0.39" />
<xacro:property name="base_height" value="0.06" />
<xacro:property name="wheel_radius" value="0.0723" />
<xacro:property name="wheel_width" value="0.05" />
<xacro:property name="laser_pose">
<origin xyz="-0.0475 0 0.125" rpy="0 0 0"/>
</xacro:property>
<material name="grey">
<color rgba="0.5 0.5 0.5 1" />
</material>
<material name="blue">
<color rgba="0 0 0.5 1" />
</material>
<material name="pink">
<color rgba="1 0.75 0.8 1" />
</material>
<!-- base_footprint (projection of base_link on the ground) -->
<link name="base_footprint"/>
<joint name="base_joint" type="fixed">
<parent link="base_footprint"/>
<child link="base_link"/>
<origin xyz="0 0 0.2" rpy="0 0 0"/>
</joint>
<!-- base_link and base_scan (required for Nav2) -->
<link name="base_link">
<visual>
<geometry>
<box size="${base_length} ${base_width} ${base_height}" />
</geometry>
<origin xyz="0 0 0" rpy="0 0 0" />
<material name="blue" />
</visual>
</link>
<joint name="base_scan_joint" type="fixed">
<parent link="base_link"/>
<child link="base_scan"/>
<origin xyz="0 0 0.06" rpy="0 0 0"/>
</joint>
<link name="base_scan">
<visual>
<geometry>
<cylinder radius="0.0375" length="0.04"/>
</geometry>
<origin xyz="0 0 0.04" rpy="0 0 0" />
<material name="pink" />
</visual>
</link>
<!-- Wheels (4 mecanum wheels) -->
<joint name="base_left_back_wheel_joint" type="continuous">
<parent link="base_link"/>
<child link="left_back_wheel"/>
<origin xyz="-0.22 0.225 -0.01" rpy="0 0 0"/>
<axis xyz="0 1 0"/>
</joint>
<link name="left_back_wheel">
<visual>
<geometry>
<cylinder radius="${wheel_radius}" length="${wheel_width}"/>
</geometry>
<origin xyz="0 0 0" rpy="1.57 0 0" />
<material name="grey" />
</visual>
</link>
<joint name="base_right_back_wheel_joint" type="continuous">
<parent link="base_link"/>
<child link="right_back_wheel"/>
<origin xyz="-0.22 -0.225 -0.01" rpy="0 0 0"/>
<axis xyz="0 1 0"/>
</joint>
<link name="right_back_wheel">
<visual>
<geometry>
<cylinder radius="0.05" length="0.0723"/>
</geometry>
<origin xyz="0 0 0" rpy="1.57 0 0" />
<material name="grey" />
</visual>
</link>
<joint name="base_left_front_wheel_joint" type="continuous">
<parent link="base_link"/>
<child link="left_front_wheel"/>
<origin xyz="0.22 0.225 -0.01" rpy="0 0 0"/>
<axis xyz="0 1 0"/>
</joint>
<link name="left_front_wheel">
<visual>
<geometry>
<cylinder radius="0.05" length="0.0723"/>
</geometry>
<origin xyz="0 0 0" rpy="1.57 0 0" />
<material name="grey" />
</visual>
</link>
<joint name="base_right_front_wheel_joint" type="continuous">
<parent link="base_link"/>
<child link="right_front_wheel"/>
<origin xyz="0.22 -0.225 -0.01" rpy="0 0 0"/>
<axis xyz="0 1 0"/>
</joint>
<link name="right_front_wheel">
<visual>
<geometry>
<cylinder radius="0.05" length="0.0723"/>
</geometry>
<origin xyz="0 0 0" rpy="1.57 0 0" />
<material name="grey" />
</visual>
</link>
</robot>
Any help to solve this issue is much appreciated, Thank youu!