Git Product home page Git Product logo

ros_vision_pkg's Introduction

Research Interest ๐ŸŽ“

Computer Vision Semantic Segmentation Action Recognition
Salient Object Detection Medical Image Segmentation Image to Image Translation

Contacts ๐Ÿ“ƒ

CV Twitter LinkedIn Google Scholar
Github ResearchGate OrcID

Buy me a coffee โ˜•

Github Sponsor Buy Me A Coffee

GitHub Stats ๐Ÿ“Ÿ

Taulant's GitHub Stats

ros_vision_pkg's People

Contributors

plemeri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ros_vision_pkg's Issues

everytime out_z is zero

Hi,

  max_deg = int(360 // sample_rate)
   arr = pointcloud2_to_xyz_array(msg)

   angle = np.arctan2(arr[:, 1], arr[:, 0])
   angle = np.rad2deg(angle) + 180
   angle /= sample_rate
   angle = np.round(angle)
   angle[angle > max_deg - 1] = max_deg - 1

   dist = np.sqrt(arr[:, 0] ** 2 + arr[:, 1] ** 2)
   min_dist = np.ones(max_deg) * max_dist
   for i, ang in enumerate(angle):
       if min_dist[int(ang)] > dist[i]:
           min_dist[int(ang)] = dist[i]
   # -- make angle based min_distance data -- end

   # -- to pointcloud for visualization
   out_angle = np.deg2rad(np.linspace(0, 359, max_deg))
   out_x = -np.cos(out_angle) * min_dist
   out_y = -np.sin(out_angle) * min_dist
   out_z = np.zeros(max_deg)
   out_cloud = np.stack([out_x, out_y, out_z], axis=-1)

   print(out_z)

output:
[0. 0. 0. 0. 0. 0. 0.] [0. 0. 0. 0. 0. 0. 0.] [0. 0. 0. 0. 0. 0. 0.] [0. 0. 0. 0. 0. 0. 0.] [0. 0. 0. 0. 0. 0. 0.] [0. 0. 0. 0. 0. 0. 0.] [0. 0. 0. 0. 0. 0. 0.] [0. 0. 0. 0. 0. 0. 0.] [0. 0. 0. 0. 0. 0. 0.] [0. 0. 0. 0. 0. 0. 0.] [0. 0. 0. 0. 0. 0. 0.] [0. 0. 0. 0. 0. 0. 0.] [0. 0. 0. 0. 0. 0. 0.] [0. 0. 0. 0. 0. 0. 0.] [0. 0. 0. 0. 0. 0. 0.]

print(out_x)

output:
[-0. -0.30125702 0.30265708 0.99996192 0. -0.30468984 -0. ] [-0. -0.30637342 0.28919702 0.99996192 0. -0.30468984 -0. ] [-0. -0.31355883 0.30099976 0.99996192 0. -0.30612661 -0. ] [-0. -0.30135081 0.28919702 0.99996192 0. -0.29824787 -0. ]

ฤฑ use ouster os1. Thanks in advance

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.