Giter Club home page Giter Club logo

Comments (8)

ruffsl avatar ruffsl commented on June 10, 2024 1

FYI, some relevant discussion on integrating SDFormat with ros2: ros/robot_state_publisher#144

from dolly.

chapulina avatar chapulina commented on June 10, 2024 1

I played a bit with the sdformat_urdf package to see if I could use robot_state_publisher without changing the robot description from SDF to URDF. That package isn't released for Foxy though (ros/sdformat_urdf#3), so I tried compiling the galactic branch from source, as well as urdf_parser_plugin, but didn't get it to work 😕 It will be a bummer not to be able to do this on Foxy...

I'll try this on Galactic later. I'm still working on Dolly's Galactic migration on branch galactic_dev.

from dolly.

hardesh avatar hardesh commented on June 10, 2024

Hi @chapulina,
Is there any update on this?

I've been trying to find a way to publish TFs with SDF, but have not found any way so far

from dolly.

chapulina avatar chapulina commented on June 10, 2024

a way to publish TFs with SDF

You could add the PosePublisher plugin and start a ros_ign_bridge from /model/model_name/pose@geometry_msgs/TransformStamped[ignition.msgs.Pose.

It would be nice to add an example like this to ros_ign_gazebo_demos

from dolly.

hardesh avatar hardesh commented on June 10, 2024

Interesting! Thanks for sharing. Will try this out and will raise a PR after that

from dolly.

hardesh avatar hardesh commented on June 10, 2024

Hi @chapulina,
I tried this today. But it's not working. I added the plugin in the SDF of robot

<plugin filename="libignition-gazebo-pose-publisher-system.so" name="ignition::gazebo::systems::PosePublisher">
      <publish_link_pose>true</publish_link_pose>
      <publish_collision_pose>false</publish_collision_pose>
      <publish_visual_pose>false</publish_visual_pose>
      <publish_sensor_pose>false</publish_sensor_pose>
      <publish_nested_model_pose>true</publish_nested_model_pose>
      <update_frequency>20</update_frequency>
    </plugin>

When I echo the ign topic using ign topic -e --topic /robot/pose it's showing the data. But after adding the topic in parameter_bridge i'm not able to see the data on ROS2 topic

from dolly.

hardesh avatar hardesh commented on June 10, 2024

Here's the parameter bridge node:

bridge = Node(
        package='ros_ign_bridge',
        executable='parameter_bridge',
        arguments=['/cmd_vel@geometry_msgs/msg/[email protected]',
                   '/scan@sensor_msgs/msg/[email protected]',
                   '/odometry@nav_msgs/msg/[email protected]',
                   '/model/movus/pose@tf2_msgs/msg/TFMessage[ignition.msgs.Pose_V',
                   '/world/station/model/movus/link/camera_front/sensor/color/camera_info@sensor_msgs/msg/CameraInfo[ignition.msgs.CameraInfo',
                   '/world/station/model/movus/link/camera_front/sensor/depth/camera_info@sensor_msgs/msg/CameraInfo[ignition.msgs.CameraInfo',
                   '/world/station/model/movus/link/camera_front/sensor/color/image@sensor_msgs/msg/Image[ignition.msgs.Image',
                   '/world/station/model/movus/link/camera_front/sensor/depth/depth_image/points@sensor_msgs/msg/PointCloud2[ignition.msgs.PointCloudPacked'],
        output='screen',
        remappings=[
            ('/world/station/model/movus/link/camera_front/sensor/color/camera_info', '/camera/color/camera_info'),
            ('/world/station/model/movus/link/camera_front/sensor/color/image', '/camera/color/image'),
            ('/world/station/model/movus/link/camera_front/sensor/depth/camera_info', '/camera/depth/camera_info'),
            ('/world/station/model/movus/link/camera_front/sensor/depth/depth_image/points', '/camera/depth/points')
        ]
    )

from dolly.

hardesh avatar hardesh commented on June 10, 2024

Also I think I should create an issue in ros_ign 😓

from dolly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.