Coder Social home page Coder Social logo

marcoesposito1988 / open3d_conversions Goto Github PK

View Code? Open in Web Editor NEW
7.0 5.0 6.0 23 KB

Conversions between ROS messages and Open3D point clouds

License: GNU Lesser General Public License v2.1

CMake 2.97% Python 97.03%
ros pointcloud open3d conversions

open3d_conversions's Issues

ValueError: Buffer size must be a multiple of element size

Hi, I'm getting this error when trying to convert data from a subscribed pointcloud2 stream.

Screenshot 2024-02-25 at 6 31 17 PM

This happens despite the code being extremely similar to the example code.

import rospy
import open3d_conversions
from sensor_msgs.msg import PointCloud2 

current_cloud = None
def parse_msg(pc_msg):
    global current_cloud
    current_cloud = pc_msg

rospy.init_node('myListener', anonymous=True, disable_signals=True)
rate=rospy.Rate(1)
rospy.Subscriber("/cloud_registered", PointCloud2, parse_msg, queue_size=1)

while not rospy.is_shutdown():
    if current_cloud is None:
        continue

    o3d_cloud = open3d_conversions.from_msg(current_cloud)

    # do open3d things
    # ...
        
    current_cloud = None
    rate.sleep()

Tech specs:
OS: Ubuntu Linux 20.04
ROS: ROS Noetic
Python: Python 3.8.10
Numpy: 1.24.3

I already had to downgrade my numpy version because it was incompatible with the open3d_conversions library. Any help would be appreciated.

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.