Skip to content

Commit

Permalink
remove number prefix from tutorial files. Fix RGB indexing
Browse files Browse the repository at this point in the history
Signed-off-by: Ashton Larkin <[email protected]>
  • Loading branch information
adlarkin committed Sep 22, 2021
1 parent 42a3e5b commit 8642b60
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,9 @@ void OnNewColoredMap(const ignition::msgs::Image &_msg)
for (uint32_t j = 0; j < width; ++j)
{
auto index = (i * width + j) * 3;
auto r = buffer[index + 2];
auto r = buffer[index];
auto g = buffer[index + 1];
auto b = buffer[index];
auto b = buffer[index + 2];
}
}
}
Expand Down
File renamed without changes.

0 comments on commit 8642b60

Please sign in to comment.