Giter Site home page Giter Site logo

ros2_shm_msgs's People

Contributors

zhenshenglee avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ros2_shm_msgs's Issues

[FEA] Add gpu processing demo with type-adaption.

the info of type-adaption is in #14

for transport

  • intra-process cuda(with cv-bridge)
  • intra-process-zero-copy opencv-cuda(GpuMat)
  • intra-type-adaption cuda

for gpu implementation

  • cuda-c (for jetson utils and other raw processing algorithms)
    - [ ] thrust (for thrust based algorithms like cupoch)
  • opencv-cuda(for opencv algorithms like opencv)

[QST] shm_msg based zero-copy, intra-process based zero-copy, and type adaption.

@ZhenshengLee thank you so much for your information and quick helps. May I ask you some questions related to ros2_shm_msgs?

  • In folder "intra", i found that you added intra type adaption within cpu. Currently, ros2_shm_msgs only support type adaption (within CPU) for image only, but not for pointcloud?
  • Is it correct if "zero-copy" in ros2_shm_msgs called "minimal copy" when we publish topics?
  • In your opinion, whether the performance (regarding to speed and CPU consumption) much better if we use type adaption?

Even I did not use https://github.com/IntelRealSense/realsense-ros#efficient-intra-process-communication, the performance of ROS2 Realsense Wrapper (regarding to speed and CPU consumption) is almost same with ros2_shm-msgs. I am not sure the hints inside since i am quite new in this topic. Maybe, my tested point-cloud data is small (camera resolution 640x480, with decimation filter).

The DATA_MAX_SIZE parameter is set too large, causing memory allocation errors

Hi,

thanks for the awesome examples.

i tried to create a PointCloud240m.msg,and change uint32 DATA_MAX_SIZE=251658240.
when i run ./pcl240m_talker
error i have got:
'''

terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)

'''
it seems DATA_MAX_SIZE is set too large

Any idea how to publish the pcd file with 240M ?

[BUG] adding another user failed when starting docker container.

using this sw means agreeing to the license agreement above
[INFO] Start docker container based on local image : ga_team/ga_ros:22.04
[INFO] Starting docker container "ga_22.04_neousys" ...
++ local_volumes
++ set +x
+ docker run --gpus all -it -d --privileged --name ga_22.04_neousys -e DOCKER_USER=neousys -e USER=neousys -e DOCKER_USER_ID=1000 -e DOCKER_GRP=neousys -e DOCKER_GRP_ID=1000 -e DOCKER_IMG=ga_team/ga_ros:22.04 -e USE_GPU=1 -e NVIDIA_VISIBLE_DEVICES=all -e NVIDIA_DRIVER_CAPABILITIES=compute,video,utility -v /home/neousys/zs_ws/ga_ros:/ga_ros -v /home/neousys/.cache:/home/neousys/.cache -v /dev:/dev -v /media:/media -v /tmp/.X11-unix:/tmp/.X11-unix:rw -v /etc/localtime:/etc/localtime:ro -v /usr/src:/usr/src -v /lib/mgaules:/lib/mgaules --net host -w /ga_ros --add-host in_dev_docker:127.0.0.1 --add-host neousys-Nuvo-8208GC-Series:127.0.0.1 --hostname in_dev_docker --shm-size 2G --pid=host -v /dev/null:/dev/raw1394 ga_team/ga_ros:22.04 /bin/bash
07bc0a9a3856c41fcc2906562d3c0b935f038c97adfd04859af78560d2addb36
+ '[' 0 -ne 0 ']'
+ set +x
addgroup: The GID `1000' is already in use.
usermod: user 'neousys' does not exist
root is not in the sudoers file.  This incident will be reported.
root is not in the sudoers file.  This incident will be reported.
root is not in the sudoers file.  This incident will be reported.
root is not in the sudoers file.  This incident will be reported.
chown: invalid user: 'neousys:neousys'
chown: invalid user: 'neousys:neousys'
[ OK ] Finished setting up ga_team/ga ros environment. Now you can enter with: 
bash docker/scripts/ga_into.sh 
[ OK ] Enjoy!

a workaround is to change ga_into.sh to be like the follow

docker exec \
    -u zs \
    -e HISTFILE=/ga_ros/.dev_bash_hist \
    -it ga_${GA_DIST}_$USER \
    /bin/bash

GpuMat invalid argument

Hey,

thanks a lot for the awesome examples.
I tried your cuda GpuMat examples and it is working fine.
Doing stuff with the GpuMat at the listener side is somehow impossible.
Functions like download, clone(), etc. yield an invalid argument error.
The gpu_mat is not empty.

Any idea how to access the data of the GpuMat at listener side?

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.