GithubHelp home page GithubHelp logo

Comments (6)

MikelBueno avatar MikelBueno commented on August 10, 2024

Hi @UK-Roy,

ModuleNotFoundError: No module named 'ros2_data.ros2_data_s__rosidl_typesupport_c'

This error is related to the ros2_data ROS2 Package, which may not be correctly installed (compiled) in your machine. Could you please re-build it, and try again?

Regards,
Mikel, IFRA-Cranfield

from ros2_robotsimulation.

UK-Roy avatar UK-Roy commented on August 10, 2024

Thanks for the response. I could not find any installation process for ros2_data as well as there is no package in the apt package manager tool. If you provide me the instruction to re-build process, I will be grateful.

Kind regards,
UK Roy

from ros2_robotsimulation.

MikelBueno avatar MikelBueno commented on August 10, 2024

Hi @UK-Roy,
The ros2_data package is part of the ros2_RobotSimulation bundle (you should have it installed already).
I would try to re-install it, by simply doing:

  1. Remove the ros2_data folders inside the ~/dev_ws/build and ~/dev_ws/install folders.
  2. Colcon build the workspace again.

Regards,
Mikel, IFRA-Cranfield

from ros2_robotsimulation.

UK-Roy avatar UK-Roy commented on August 10, 2024

Hi @mikel, IFRA-Cranfield,
I tried at the above steps you mentioned as well as I also tried to build from scratch. But the issue remains same.

Then I tried to simulate any robot in gazebo, but it is not showing in gazebo but in rviz.
For example I tried to execute this command:
Screenshot from 2023-08-15 15-05-04

But the result show s like below:
Screenshot from 2023-08-15 15-05-38

How to overcome this kind of issues.

Regards,
UK-Roy

from ros2_robotsimulation.

MikelBueno avatar MikelBueno commented on August 10, 2024

Hi @UK-Roy,
In the second picture you've shared there's a "No module named rclpy._rclpy" message, which I believe is generated because your ROS2 is not installed properly. rclpy is the ROS2 client library for Python, which should be installed within your ROS2 machine.
Can you execute any other ROS2/Python node (publisher/subscriber, for example)?
I believe you'll need to re-install ROS2.
Regards,
Mikel, IFRA-Cranfield

from ros2_robotsimulation.

UK-Roy avatar UK-Roy commented on August 10, 2024

Hi @MikelBueno,
I have re-installed ROS2 and also tried simple subscriber and publisher in the same workspace where this package is located. Thats simple python files are working. But still ros2_RobotSimulation pkg is facing same issues.
Below simple subscriber and publisher code
Screenshot from 2023-08-15 22-51-27
and output:
Screenshot from 2023-08-15 22-50-44

But ros2_RobotSimulation pkg is not working
Screenshot from 2023-08-15 22-39-15
It is appearing in rViz2 but not at gazebo
Regards,
UK-Roy

from ros2_robotsimulation.

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.