Skip to content
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

Marker textures #153

Merged
merged 9 commits into from
Aug 20, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion visualization_msgs/msg/Marker.msg
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,13 @@ geometry_msgs/Point[] points
# NOTE: alpha is not yet used
std_msgs/ColorRGBA[] colors

# Texture resource is a special URI that can either reference a texture file in
# a format acceptable to libcurl or:
Copy link
Contributor

Choose a reason for hiding this comment

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

We should add to the documentation references to resource retriever and use it like we already do for the meshes. (This lets us use package:// syntax too)

https://index.ros.org/p/resource_retriever/

Then for the embedded approach I might suggest embedded://name or attached://name and then we can mirror it and used the same keyword for the mesh.

# "texture_embedded://texture_name"
string texture_resource
# An image to be loaded into the rendering engine as the texture for this marker.
sensor_msgs/Image texture
# This will be used iff texture_resource is set to texture_embedded.
gbalke marked this conversation as resolved.
Show resolved Hide resolved
sensor_msgs/CompressedImage texture
# Location of each vertex within the texture; in the range: [0.0-1.0]
UVCoordinate[] uv_coordinates

Expand Down