-
Notifications
You must be signed in to change notification settings - Fork 25
Feature to save volumes #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Feature to save volumes #23
Conversation
collision_publisher.h
Outdated
ros::NodeHandle* m_rosNode; | ||
|
||
void voxelsRemoved(double ray[3], float vcolor[4], double time); | ||
void voxelsCallback(vdrilling_msgs::points voxel_msg); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rename this callback to removeVoxelsCallback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
collision_publisher.cpp
Outdated
m_burrChangePub = m_rosNode -> advertise<vdrilling_msgs::UInt8Stamped>(a_namespace + "/" + a_plugin + "/burr_change", 1, true); | ||
m_volumePropPub = m_rosNode -> advertise<vdrilling_msgs::VolumeProp>(a_namespace + "/" + a_plugin + "/volume_prop", 1, true); | ||
|
||
m_voxelsSub = m_rosNode->subscribe(a_namespace + "/" + a_plugin + "/voxels_removing", 1, &DrillingPublisher::voxelsCallback, this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's rename this topic name as "remove_voxels" and the subscriber object as m_removeVoxelsSub
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Added functionality to save intermediate volumes after drilling.
volumetric_drilling.cpp/.h
Added a new keyboard shortcut (Ctrl+L) to save the current volume as sliced images. The images will be saved inside "resources/intermediate_volumes/$VOLUMENAME/$DATE&TIME" with prefix plane00.
collision_publisher.cpp/.h
Added a new subscriber to remove voxles via ROS. rostopic should be "/ambf/volumetric_drilling/voxels_removing" with custom message type Points.msg.
ADF/shaders/volume/shader.fs, ADF/shaders/volume_matcap/shader.fs
Renamed half -> half_vec to avoid error.