ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

laziest_robot's profile - activity

2023-04-22 05:31:32 -0500 received badge  Nice Answer (source)
2022-05-11 07:25:35 -0500 received badge  Famous Question (source)
2022-03-28 19:54:54 -0500 received badge  Notable Question (source)
2022-02-17 08:42:37 -0500 received badge  Popular Question (source)
2021-12-20 02:57:16 -0500 received badge  Enthusiast
2021-12-19 19:08:30 -0500 received badge  Self-Learner (source)
2021-12-18 04:30:12 -0500 received badge  Self-Learner (source)
2021-12-18 04:30:12 -0500 received badge  Teacher (source)
2021-12-18 04:30:12 -0500 received badge  Necromancer (source)
2021-12-18 02:54:45 -0500 marked best answer URDF and RVIZ2: cylinder not showing

Hi,

I am working through the urdf_tutorials and I found that rviz doesn't show the cylinder model correctly, it only shows the circle on the floor and isn't 'extruded'. The box and sphere work fine and are shown in rviz. There aren't any errors shown in the terminal.

Link to rviz display

I am using: ROS2 - galactic, RVIZ2 version Alpha

Packages: joint_state_publisher joint_state_publisher_gui

OS: Ubuntu 20.04.3 LTS 64bit with kernel 3.36.8

It looks like this is a bug in the parser? Thanks for the help!

2021-12-18 02:54:42 -0500 answered a question URDF and RVIZ2: cylinder not showing

Putting LC_NUMERIC="en_US.UTF-8" to .bashrc solved my issue: echo 'export LC_NUMERIC="en_US.UTF-8"' >>~/.bashrc

2021-12-18 02:50:55 -0500 marked best answer URDF link not properly fixed to world

Hi, I hope someone can help me out with the following problem. I am using a 'dummy' link to fix the first link of my robot to the world frame. I am spawning my robot using the spawn_entity script. This all goes well and the first link is spawned in Gazebo. However, when I unpause the simulation in Gazebo the link falls on the floor (in case of a 0.1 clearance for demonstration purposes).

paused unpaused

What am I doing wrong?

ROS2 Galactic

Ubuntu 20.04.3 LTS, with kernel 5.11.0-41-generic

model file:

<?xml version="1.0"?>
<robot name="cherry_bot">

  <link name="base"/>

  <joint name="fixed" type="fixed">
    <parent link="base"/>
    <child link="link_0"/>
  </joint>

  <link name="link_0">
    <visual>  
      <origin xyz="0 0 0.4" />
      <geometry>
        <cylinder length="0.6" radius="0.2"/>
      </geometry>
    </visual>

    <collision>
      <origin xyz="0 0 0.4" />
      <geometry>
        <cylinder length="0.6" radius="0.2"/>
      </geometry>
    </collision>

    <inertial>
      <origin xyz="0 0 0.4" />
      <mass value="10"/>
      <inertia ixx="0.4" ixy="0.0" ixz="0.0" iyy="0.4" iyz="0.0" izz="0.2"/>
    </inertial>
  </link>
</robot>

Launch file:

import os
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument, ExecuteProcess
from launch.substitutions import LaunchConfiguration
from launch_ros.actions import Node

def generate_launch_description():

    use_sim_time = LaunchConfiguration('use_sim_time', default='false')
    urdf_file_name = 'model.urdf'
    world_file_name = 'test.world'

    urdf = os.path.join(
        get_package_share_directory('cherry_bot_description'), 'urdf',
        urdf_file_name)

    with open(urdf, 'r') as infp:
        robot_desc = infp.read()

    return LaunchDescription([
        DeclareLaunchArgument(
            'use_sim_time',
            default_value='false',
            description='Use simulation (Gazebo) clock if true'),

        ExecuteProcess(
            cmd=['gazebo', '--verbose', '--pause',
                 '-s', 'libgazebo_ros_factory.so'],
            output='screen'),

        Node(
            package='robot_state_publisher',
            executable='robot_state_publisher',
            name='robot_state_publisher',
            output='screen',
            parameters=[{'use_sim_time': use_sim_time,
                         'robot_description': robot_desc}],
            arguments=[urdf]),

        Node(
            package='gazebo_ros',
            executable='spawn_entity.py',
            name='urdf_spawner',
            output='screen',
            arguments=["-topic", "/robot_description", "-entity", "cherry_bot"]),
    ])

Console output:

~/repos/cherry-bot$ source install/setup.bash && ros2 launch cherry_bot_gazebo cherry_bot.launch.py 
[INFO] [launch]: All log files can be found below /home/per/.ros/log/2021-12-17-21-49-46-173895-Per-Desktop-127262
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [gazebo-1]: process started with pid [127264]
[INFO] [robot_state_publisher-2]: process started with pid [127266]
[INFO] [spawn_entity.py-3]: process started with pid [127268]
[robot_state_publisher-2] [WARN] [1639774186.304280364] [robot_state_publisher]: No robot_description parameter, but command-line argument available.  Assuming argument is name of URDF file.  This backwards compatibility fallback will be removed in the future.
[robot_state_publisher-2] Link link_0 had 0 children
[robot_state_publisher-2] [INFO] [1639774186.306114303] [robot_state_publisher]: got segment base
[robot_state_publisher-2] [INFO] [1639774186.306132973] [robot_state_publisher]: got segment link_0
[spawn_entity.py-3] [INFO] [1639774186.544989349] [urdf_spawner]: Spawn Entity started
[spawn_entity.py-3] [INFO] [1639774186.545212320] [urdf_spawner]: Loading entity published on topic /robot_description
[spawn_entity.py-3] [INFO] [1639774186.546049934] [urdf_spawner]: Waiting for entity xml on /robot_description
[spawn_entity.py-3] [INFO] [1639774186.547436311] [urdf_spawner]: Waiting for service /spawn_entity, timeout = 5
[spawn_entity.py-3] [INFO] [1639774186.547646483] [urdf_spawner]: Waiting for service /spawn_entity
[gazebo-1] Gazebo multi-robot simulator, version 11.9.1
[gazebo-1] Copyright (C) 2012 Open ...
(more)
2021-12-18 02:50:55 -0500 received badge  Scholar (source)
2021-12-18 02:50:47 -0500 answered a question URDF link not properly fixed to world

It turns out that the dummy link should be named 'world' explicitly. The following code works: <link name="world"/&g

2021-12-18 02:50:47 -0500 received badge  Rapid Responder (source)
2021-12-18 02:44:38 -0500 edited question URDF link not properly fixed to world

URDF link not properly fixed to world Hi, I hope someone can help me out with the following problem. I am using a 'dummy

2021-12-17 15:14:30 -0500 edited question URDF link not properly fixed to world

URDF link not properly fixed to world Hi, I hope someone can help me out with the following problem. I am using a 'dummy

2021-12-17 15:14:30 -0500 received badge  Editor (source)
2021-12-17 15:08:16 -0500 received badge  Student (source)
2021-12-17 15:03:23 -0500 edited question URDF link not properly fixed to world

URDF link not properly fixed to world Hi, I hope someone can help me out with the following problem. I am using a 'dummy

2021-12-17 15:01:34 -0500 received badge  Famous Question (source)
2021-12-17 15:00:51 -0500 asked a question URDF link not properly fixed to world

URDF link not properly fixed to world Hi, I hope someone can help me out with the following problem. I am using a 'dummy

2021-11-06 17:35:44 -0500 received badge  Notable Question (source)
2021-11-06 17:35:44 -0500 received badge  Popular Question (source)
2021-11-04 04:28:45 -0500 commented question URDF and RVIZ2: cylinder not showing

Thanks osilva, putting LC_NUMERIC="en_US.UTF-8" to .bashrc solved my issue. echo 'export LC_NUMERIC="en_US.UTF-8"' >

2021-11-03 14:43:21 -0500 asked a question URDF and RVIZ2: cylinder not showing

URDF and RVIZ2: cylinder not showing Hi, I am working through the urdf_tutorials and I found that rviz doesn't show the

2021-11-03 11:00:02 -0500 received badge  Supporter (source)