We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Copying directly from the given template:
import { Input, Messages } from "ros"; import { TwoDimensionalPlot, TwoDimensionalPlotLine } from "./types"; type GlobalVariables = { id: number }; export const inputs = ["/mpc_stats"]; export const output = "/webviz_node/"; // Populate 'Input' with a parameter to properly type your inputs, e.g. 'Input<"/your_input_topic">' const publisher = ( message: Input<"/mpc_stats">, globalVars: GlobalVariables ): TwoDimensionalPlot => { const lines: TwoDimensionalPlotLine[] = []; const points: TwoDimensionalPlotLine[] = []; const polygons: TwoDimensionalPlotLine[] = []; return { lines, points, polygons }; }; export default publisher;
Gives the TS compilation error Unions are not allowed in return type.DatatypeExtraction
Unions are not allowed in return type.DatatypeExtraction
TwoDimensionalPlot contains the union PointStyle, is this the issue?
TwoDimensionalPlot
PointStyle
The text was updated successfully, but these errors were encountered:
Fix TwoDimensionalPlotLine data type so the pointStyle member is not …
d8a5629
…a union. Resolve cruise-automation#613
834eb47
Successfully merging a pull request may close this issue.
Copying directly from the given template:
Gives the TS compilation error
Unions are not allowed in return type.DatatypeExtraction
TwoDimensionalPlot
contains the unionPointStyle
, is this the issue?The text was updated successfully, but these errors were encountered: