-
Notifications
You must be signed in to change notification settings - Fork 243
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
Add publishMesh example #154
base: eloquent-devel
Are you sure you want to change the base?
Add publishMesh example #154
Conversation
nbbrooks
commented
Jun 2, 2020
- Add .gitattributes and chess piece .stl files
- Add .gitattributes and chess piece .stl files
I actually need this for one of our projects right now! Let's try to get it merged. Edit - oh, I need it for ROS1. Well, this is still a nice example to have |
@@ -198,6 +198,13 @@ install( | |||
RUNTIME DESTINATION lib/${PROJECT_NAME} | |||
) | |||
|
|||
# Install shared resources | |||
install(DIRECTORY launch DESTINATION share/${PROJECT_NAME}) |
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.
Too many spaces between launch and DESTINATION
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 think the best thing would be to put DESTINATION on a new line, like at L205
step = 0.2; | ||
const std::array<double, 6> thetas = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }; | ||
const std::array<std::string, 6> meshes = { | ||
"pawn", "knight", "bishop", "rook", "queen", "king" |
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'm not a huge fan of uploading so many STL's, I think one would have been fine. But I guess it's OK
visual_tools_->publishMesh(pose1 * Eigen::AngleAxisd(thetas[i], Eigen::Vector3d::UnitZ()), | ||
"package://rviz_visual_tools/meshes/" + meshes[i] + ".stl", | ||
mesh_colors[i], scales[i]); | ||
if (i == 0.0) |
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 suppose you could use (!i)
here
Also, delete the comment at L596 of rviz_visual_tools_demo.cpp |
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 is failing for clang-tidy reasons. Please look at the output in travis and apply that diff. If those failures are unrelated to this PR, please make a new PR with those changes and then rebase this one after that one is merged.