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

rydb's profile - activity

2023-09-26 11:36:53 -0500 received badge  Notable Question (source)
2023-09-26 11:36:53 -0500 received badge  Famous Question (source)
2023-03-24 13:24:17 -0500 commented question How do I access the source of Mimick that mimick_vendor's cmake file references in order to edit Mimick's CMake file to give it arm7l compatability

I only vaguely remember the problem I had, but if I remember correctly, the main thing is not checking for mimick vendor

2023-03-24 13:23:43 -0500 commented question How do I access the source of Mimick that mimick_vendor's cmake file references in order to edit Mimick's CMake file to give it arm7l compatability

I only vaguely remember the problem I had, but if I remember correctly, the main thing is not checking for mimick vendor

2022-12-28 15:47:44 -0500 received badge  Popular Question (source)
2022-12-09 14:16:06 -0500 commented answer supported file format for rviz2 besides .dae?

Meshlab is a great, easy to use tool to convert or manipulate meshes if you do want to use a particular format that y

2022-12-09 14:15:11 -0500 commented answer supported file format for rviz2 besides .dae?

Meshlab is a great, easy to use tool to convert or manipulate meshes if you do want to use a particular format that y

2022-12-09 14:11:54 -0500 edited question supported file format for rviz2 besides .dae?

supported file format for rviz2 besides .dae? Hello, I am able to successfully render a model .dae file in rviz2 with m

2022-12-09 14:06:44 -0500 commented answer supported file format for rviz2 besides .dae?

A binary .stl should certainly work. I do not believe RViz supports obj (unless that's changed somewhat recently).

2022-12-09 11:22:16 -0500 edited question supported file format for rviz2 besides .dae?

supported file format for rviz2 besides .dae? Hello, I am able to successfully render a model .dae file in rviz2 with m

2022-12-09 11:18:32 -0500 edited question supported file format for rviz2 besides .dae?

supported file format for rviz2 besides .dae? Hello, I am able to successfully render a model .dae file with urdf as su

2022-12-09 11:17:22 -0500 asked a question supported file format for rviz2 besides .dae?

supported file format for rviz2 besides .dae? Hello, I am able to successfully render a model referenced stored in a ur

2021-08-20 15:14:54 -0500 received badge  Nice Answer (source)
2021-08-02 12:19:44 -0500 received badge  Famous Question (source)
2021-07-14 04:13:50 -0500 marked best answer How do you load urdf files in rviz2 with ROS2?

Edit 2: Following fergs's launch file code on https://github.com/mikeferguson/ubr_r... , I was able to create a working launch file which sets up robot_state_publisher which rviz2 picks up. However, now the problem is that, although the joints for the models load, the models do not... I do not have the 5 karma required to upload the picture, but here is the modified launch file im using, and the urdf file are below.

I also removed the error log mention in Edit 1 as well as the .rviz config file since they are no longer relevant to the current problem.

Edit: As stevemacenski pointed out, I was getting errors thrown about non-existent libraries was an rviz config problem. it throws an error with the old library names but it doesn't tell you that in rviz2, they renamed the libraries. So When when my laucnh file was loading, It threw an error because I was using Rviz1 library naming conventions instead of Rviz2 library naming conventions . I fixed the .rviz config file and the full working file has been moved into the question

I thought it would be a straight port of ros1 launch file to ros2 launch file to load but apprently not. I've now fixed the rviz config library naming convention to match ros2's, and I managed to get the launch file to load robot_state_publisher and got rviz2 to read it, the final problem seems to be that rviz2 loads the joints of urdf, but not the model(basic geometry and .dae file) of the robot. This urdf file I have will work in

Python launch file:

 #!/usr/bin/env python3

import os
import sys

from ament_index_python.packages import get_package_share_directory

import launch
import launch_ros.actions


def generate_launch_description():
    # Load the URDF into a parameter
    bringup_dir = get_package_share_directory('testpkg')
    urdf_path = os.path.join(bringup_dir, 'urdf', 'doggo.urdf')
    urdf = open(urdf_path).read()
  )

    return launch.LaunchDescription([),
        launch_ros.actions.Node(
            name='robot_state_publisher',
            package='robot_state_publisher',
            executable='robot_state_publisher',
            parameters=[{'robot_description': urdf}],
        ),
       ),
     )
    ])


def main(argv=sys.argv[1:]):
    """Run lifecycle nodes via launch."""
    ld = generate_launch_description()
    ls = launch.LaunchService(argv=argv)
    ls.include_launch_description(ld)
    return ls.run()


if __name__ == '__main__':
    main()

URDF file:

<?xml version="1.0"?>
<robot name="StlTest">
  <link name="base_link">
    <visual>
            <color rgba="0.1 0.1 0.1 1"/>
      <geometry>
        <cylinder length="0.01" radius="0.2"/>
      </geometry>
    </visual>
  </link>

    <link name="body_link">
        <visual>
        <origin xyz="0 0 0" rpy="0 0 0"/> 
            <geometry>
                <mesh filename="package://testpkg/meshes/doggo_body.dae"/>
            </geometry>
        </visual>
    </link>

    <joint name="base_to_right_leg" type="fixed">
      <parent link="base_link"/>
      <child link="body_link"/>
  </joint>
</robot>

Incase the filestructure is the issue, here it is.

  SourceBattleDoggo  
    ├── build
│   ├── COLCON_IGNORE
│   └── testpkg
│       ├── ament_cmake_core
│       ├── ament_cmake_environment_hooks
│       ├── ament_cmake_index
│       ├── ament_cmake_package_templates
│       ├── ament_cmake_symlink_install
│       ├── ament_cmake_uninstall_target
│       ├── ament_copyright
│       ├── ament_lint_cmake
│       ├── ament_xmllint
│       ├── cmake_args.last
│       ├── CMakeCache.txt
│       ├── CMakeFiles
│       ├── cmake_install.cmake
│       ├── colcon_build.rc
│       ├── colcon_command_prefix_build.sh
│       ├── colcon_command_prefix_build.sh.env
│       ├── CTestConfiguration.ini
│       ├── CTestCustom.cmake
│       ├── CTestTestfile.cmake
│       ├── install_manifest.txt
│       ├── Makefile
│       └── symlink_install_manifest.txt
├── install
│   ├── COLCON_IGNORE
│   ├── local_setup.bash
│   ├── local_setup.ps1 ...
(more)
2021-07-14 04:13:50 -0500 received badge  Enlightened (source)
2021-07-14 04:13:50 -0500 received badge  Good Answer (source)
2021-06-29 17:01:10 -0500 edited question How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link) EDIT: deleting previous

2021-06-29 17:00:49 -0500 edited question How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link) EDIT: deleting previous

2021-06-29 16:55:14 -0500 commented question How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

This problem is a mix of multiple problems and having the old problems that have been solved in the question would be vi

2021-06-29 16:50:55 -0500 commented answer How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

I changed fixed_frame from /scan to /odom and now it displays movement properly! I'll add picture above

2021-06-29 16:50:37 -0500 commented answer How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

I changed fixed_frame from /scan to /odom and now it displays movement properly!

2021-06-29 16:00:19 -0500 edited question How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

How do you make an /odom node for a physical robot in ros2?(whats wrong with mine?) EDIT: deleting previous contents of

2021-06-29 15:59:00 -0500 edited question How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

How do you make an /odom node for a physical robot in ros2?(whats wrong with mine?) EDIT: deleting previous contents of

2021-06-29 15:58:44 -0500 edited question How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

How do you make an /odom node for a physical robot in ros2?(whats wrong with mine?) EDIT: deleting previous contents of

2021-06-29 15:58:18 -0500 edited question How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

How do you make an /odom node for a physical robot in ros2?(whats wrong with mine?) EDIT: deleting previous contents of

2021-06-29 15:58:05 -0500 edited question How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

How do you make an /odom node for a physical robot in ros2?(whats wrong with mine?) EDIT: deleting previous contents of

2021-06-29 15:55:42 -0500 edited question How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

How do you make an /odom node for a physical robot in ros2?(whats wrong with mine?) EDIT: deleting previous contents of

2021-06-29 15:54:59 -0500 edited question How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

How do you make an /odom node for a physical robot in ros2?(whats wrong with mine?) EDIT: deleting previous contents of

2021-06-29 15:54:29 -0500 commented answer How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

I forgot to tag that i'm using python to do this, python equivalents don't exist for these libraries, but I've found tha

2021-06-29 15:54:19 -0500 commented answer How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

I forgot to tag that i'm using python to do this, python equivalents don't exist for these libraries, but I've found tha

2021-06-29 15:54:16 -0500 edited question How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

How do you make an /odom node for a physical robot in ros2?(whats wrong with mine?) EDIT: deleting previous contents of

2021-06-29 15:44:31 -0500 commented answer How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

I forgot to tag that i'm using python to do this, python equivalents don't exist for these libraries, but I've found tha

2021-06-25 15:04:26 -0500 edited question How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

How do you make an /odom node for a physical robot in ros2?(How do you handle time?) EDIT: deleting previous contents of

2021-06-25 15:03:57 -0500 edited question How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

How do you make an /odom node for a physical robot in ros2?(How do you handle time?) EDIT: deleting previous contents of

2021-06-21 09:36:09 -0500 received badge  Famous Question (source)
2021-06-14 16:01:37 -0500 edited question How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

How do you make an /odom node for a physical robot in ros2? I am lost on how to do this. I have scoured the GitHub page

2021-06-14 16:01:11 -0500 edited question How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

How do you make an /odom node for a physical robot in ros2? I am lost on how to do this. I have scoured the GitHub page

2021-06-14 15:27:39 -0500 received badge  Famous Question (source)
2021-06-11 17:34:32 -0500 received badge  Notable Question (source)
2021-06-11 04:25:06 -0500 received badge  Popular Question (source)
2021-06-10 16:25:45 -0500 asked a question How do you make an /odom node for a physical robot in ros2?(rviz not showing updated /base_link)

How do you make an /odom node for a physical robot in ros2? I am lost on how to do this. I have scoured the GitHub page

2021-05-28 05:09:01 -0500 marked best answer [joint_state_publisher]: Waiting for robot_description to be published on the robot_description topic...

Im using the below python launch file:

#!/usr/bin/env python3
import os
import sys

from ament_index_python.packages import get_package_share_directory


import rclpy
from rclpy.node import Node

from std_msgs.msg import String
import launch
import launch_ros.actions
from launch import LaunchDescription
from launch_ros.actions import Node
from launch_ros.substitutions import FindPackageShare

def generate_launch_description():
    # Load the URDF into a parameter
    bringup_dir = get_package_share_directory('urdfpublisher')
    urdf_path = os.path.join(bringup_dir, 'urdf', 'doggo.urdf')
    urdf = open(urdf_path).read()

    return launch.LaunchDescription([
        launch_ros.actions.Node(
            name='robot_state_publisher',
            package='robot_state_publisher',
            executable='robot_state_publisher',
            parameters=[{'robot_description': urdf}],
        ),
        launch_ros.actions.Node(
            name='joint_state_publisher',
            package='joint_state_publisher',
            executable='joint_state_publisher',
            parameters=[{'use_gui': True}],
        )
    ])



def main(argv=sys.argv[1:]):
    """Run lifecycle nodes via launch."""
    ld = generate_launch_description()
    ls = launch.LaunchService(argv=argv)
    ls.include_launch_description(ld)

    #launch robot_description topic
    node = rclpy.create_node('robot_description')
    publisher = node.create_publisher(generate_launch_description, 'robot_description', 10)

    #Fails when generating launch description with joint state publisher here
    publisher.publish(generate_launch_description)

    #publisher = node.create_publisher(String, 'sos')

    return ls.run()



if __name__ == '__main__':
    main()

to try and publish robot_description and joint_state_publisher with GUI enabled but I get the error "[joint_state_publisher]: Waiting for robot_description to be published on the robot_description topic..." thrown. When i remove joint_state_publisher, RVIZ2 is able to correctly pick up on robot_description meaning it should be getting published. The terminal logs also look nearly identical when joint_state_publisher is removed.

Launch file log with joint_state_publisher removed from "return launch.LaunchDescription" block:

[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [robot_state_publisher-1]: process started with pid [7135]
[robot_state_publisher-1] Parsing robot urdf xml string.
[robot_state_publisher-1] Link body_link had 0 children
[robot_state_publisher-1] [INFO] [1594658144.778155573] [robot_state_publisher]: got segment base_link
[robot_state_publisher-1] [INFO] [1594658144.778254258] [robot_state_publisher]: got segment body_link

Launch file log when joint_state_publisher isn't removed

[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [robot_state_publisher-1]: process started with pid [7078]
[INFO] [joint_state_publisher-2]: process started with pid [7080]
[robot_state_publisher-1] Parsing robot urdf xml string.
[robot_state_publisher-1] Link body_link had 0 children
[robot_state_publisher-1] [INFO] [1594657967.525358734] [robot_state_publisher]: got segment base_link
[robot_state_publisher-1] [INFO] [1594657967.525620189] [robot_state_publisher]: got segment body_link
[joint_state_publisher-2] [INFO] [1594657968.330320388] [joint_state_publisher]: Waiting for robot_description to be published on the robot_description topic...

Not sure why joint_state_publisher is being finicky and the joint_state_publisher GitHub page doesn't have any .py launch file examples.

2021-05-28 05:09:01 -0500 received badge  Self-Learner (source)
2021-05-04 11:11:26 -0500 commented answer ROS2 how do you publish an int array as a message in python? I get vague "raise TypeError()" when i try

Yep, this fixes it. I wish error handling for this was more specific like "error: expected type x, got type y" or someth

2021-05-04 11:11:11 -0500 marked best answer ROS2 how do you publish an int array as a message in python? I get vague "raise TypeError()" when i try

I want to publish 3 ints as a message but i'm getting this vague error that I'm not sure how to solve this.

This is the relevant bit of my code:

self.publisher = self.create_publisher(
    Int32,
    'wheel_settings',
    10)
#test publishing wheel settings
self.publisher.publish([1, 1, 1])

Error: "raise TypeError()"

How do I fix this? P

2021-05-04 11:11:09 -0500 commented answer ROS2 how do you publish an int array as a message in python? I get vague "raise TypeError()" when i try

Yep this fixes it. I wish error handling for this was more specific like "error: expected type x, got type y" or somethi