-
Notifications
You must be signed in to change notification settings - Fork 49
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
adding noether_simulator #51
Open
trentwall
wants to merge
12
commits into
ros-industrial:master
Choose a base branch
from
trentwall:noether_simulator
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
86a7dac
adding noether_simulator
5f2227e
fixing stylistic errors.
af2599a
More stylisitic updates
d2a1a41
making more stylistic changes
6690365
finishing up stylistic changes.
8330092
more stylistic changes
bebc44e
small fixes
dbdc80e
added comments to noether_simulator.cpp to make it more understandable.x
43c9702
changed cylinder to cone and added display for paths
49aa6bf
changed example and test meshes to be rectangular instead of square
0a9f437
updated node names in covage_sim.launch
0c9981f
code for demo
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
# .PCD v.7 - Point Cloud Data file format | ||
VERSION .7 | ||
FIELDS x y z | ||
SIZE 4 4 4 | ||
TYPE F F F | ||
COUNT 1 1 1 | ||
WIDTH 10 | ||
HEIGHT 10 | ||
VIEWPOINT 0 0 0 1 0 0 0 | ||
POINTS 100 | ||
DATA ascii | ||
0 0 0 | ||
0 0.1 0 | ||
0 0.2 0 | ||
0 0.3 0 | ||
0 0.4 0 | ||
0 0.5 0 | ||
0 0.6 0 | ||
0 0.7 0 | ||
0 0.8 0 | ||
0 0.9 0 | ||
0.1 0 0 |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
0.8 0.5 0 | ||
0.8 0.6 0 | ||
0.8 0.7 0 | ||
0.8 0.8 0 | ||
0.8 0.9 0 | ||
0.9 0 0 | ||
0.9 0.1 0 | ||
0.9 0.2 0 | ||
0.9 0.3 0 | ||
0.9 0.4 0 | ||
0.9 0.5 0 | ||
0.9 0.6 0 | ||
0.9 0.7 0 | ||
0.9 0.8 0 | ||
0.9 0.9 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ pcl_msgs/PolygonMesh[] input_mesh | |
noether_msgs/ToolRasterPath[] path | ||
--- | ||
#result definition - are messhes painted enough | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. change name of action to simulateCoverage.action |
||
bool[] painted | ||
bool[] coverage | ||
noether_msgs/ToolRasterPath[] requiredPath | ||
--- | ||
#feedback - Some sort of percentage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,12 +74,26 @@ class NoetherSimulator | |
*/ | ||
void setTool(tool_path_planner::ProcessTool tool){tool_ = tool;} | ||
|
||
/** | ||
* @brief runSimulation Simulates how to the current path will process the current mesh with the current tool. | ||
*/ | ||
void runSimulation(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add doxygen to every public function |
||
|
||
/** | ||
* @brief setDisplaySimga Sets the sigma value for displaying the mesh after being processed | ||
* @param sigma A value used to modify how the processed mesh is displayed | ||
*/ | ||
void setDisplaySigma(double sigma){scalar_sigma_ = sigma;} | ||
|
||
/** | ||
* @brief setBaseProcessRate Sets the process rate for the simulator | ||
* @param rate The rate that detirmines how many points are processed per line in the mesh | ||
*/ | ||
void setBaseProcessRate(double rate){process_base_rate_ = rate;} | ||
|
||
/** | ||
* @brief displayResults Displays the processed meshes | ||
*/ | ||
void displayResults(); | ||
|
||
private: | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This would be a more compelling demo if it also allowed the user to add a mesh from a file in addition to those meshes you auto-generate.
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.
I will start working on it.