Skip to content

Instantly share code, notes, and snippets.

View Kukanani's full-sized avatar

Adam Allevato Kukanani

View GitHub Profile
#ifndef ROSCONSOLECOLOURS_H
#define ROSCONSOLECOLOURS_H
#include <vector>
#include <deque>
#include <ros/console.h>
#include <iostream>
#include <Eigen/Eigen>
#define ROS_RED_STREAM(SSS) ROS_INFO_STREAM("\033[31;1m" << SSS << "\033[0m\n")
@awesomebytes
awesomebytes / Malformed_STL_fix.md
Last active August 1, 2023 05:11
How to fix a malformed stl (says Rviz)

Fix malformed stl (says Rviz)

To correct:

The STL file 'package://wsg_50_simulation/meshes/WSG-FMF.stl' is malformed. It starts with the word 'solid', indicating that it's an ASCII STL file, but it does not contain the word 'endsolid' soit is either a malformed ASCII STL file or it is actually a binary STL file. Trying to interpret it as a binary STL file instead.

When launching Rviz with a URDF containing SolidWorks created meshes in STL.

Just go to the folder with STL's with this problem and do: