Skip to content

Conversation

hisashiishida
Copy link

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.

ros::NodeHandle* m_rosNode;

void voxelsRemoved(double ray[3], float vcolor[4], double time);
void voxelsCallback(vdrilling_msgs::points voxel_msg);
Copy link
Collaborator

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

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);
Copy link
Collaborator

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants