Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <gpu_voxels/GpuVoxels.h>
  4. #include <ros/ros.h>
  5. #include <std_srvs/Trigger.h>
  6. #include <shared_workspace/Event.h>
  7. #include <shared_workspace/Config.h>
  8.  
  9. class Snapshotting : public EventHandler<boost::shared_ptr<gpu_voxels::voxellist::CountingVoxelList>>
  10. {
  11. public:
  12. Snapshotting(ros::NodeHandle& nh, gpu_voxels::GpuVoxelsSharedPtr gvl, boost::shared_ptr<Config> config);
  13. virtual ~Snapshotting();
  14.  
  15. void handle(boost::shared_ptr<gpu_voxels::voxellist::CountingVoxelList> env);
  16.  
  17. private:
  18. boost::shared_ptr<Config> m_config;
  19. gpu_voxels::GpuVoxelsSharedPtr m_gvl;
  20.  
  21. ros::ServiceServer m_snapshot_service_server;
  22.  
  23. boost::shared_ptr<gpu_voxels::voxellist::BitVectorVoxelList> m_snapshot_voxellist;
  24.  
  25. bool m_make_snapshot_trigger;
  26. bool m_recording_voxels_for_snapshot;
  27. uint32_t m_snapshot_iterations_counter;
  28. uint32_t m_iterations_for_snapshot;
  29.  
  30. bool triggerCB(std_srvs::Trigger::Request& req, std_srvs::Trigger::Response& res);
  31. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement