Skip to content

Conversation

@JLLeitschuh
Copy link
Member

  • Operations now use local state variables for input and output sockets rather than regenerating them on the fly
  • Moved name, description, category, icon, and aliases to a separate description object
  • Socket classes are now interfaces
  • Refactors Generated Operations to be in source code
  • Changed socket get methods to return List instead of FooSocket<?>[]

build.gradle Outdated
removeExisting true
}
generateCodeFromSource.onlyIf { !project.hasProperty('skipGenerate') }
//generateCodeFromSource.onlyIf { false }
Copy link
Member

Choose a reason for hiding this comment

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

Remove this line

@JLLeitschuh JLLeitschuh force-pushed the refactor/operation-api branch from 7529a23 to 347db13 Compare May 19, 2016 16:15
import java.util.List;


public class FiveSourceOneDestinationOperation<T1, T2, T3, T4, T5, R> implements Operation {
Copy link
Member

Choose a reason for hiding this comment

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

Add documentation for how and when to use this

@JLLeitschuh JLLeitschuh force-pushed the refactor/operation-api branch 2 times, most recently from 8113b8f to d536300 Compare May 19, 2016 21:04
@SamCarlberg
Copy link
Member

For some reason, most operations in the palette don't display their images.

new OperationMetaData(NewPointOperation.DESCRIPTION, () -> new NewPointOperation(isf, osf)),
new OperationMetaData(NewSizeOperation.DESCRIPTION, () -> new NewSizeOperation(isf, osf)),

// Raw OpenCV operations
Copy link
Member

Choose a reason for hiding this comment

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

Remove this comment and associated newlines since OpenCV operations are in their own file

@SamCarlberg
Copy link
Member

Missing operations:

ROSPublish ContoursReport
ROSPublish BlobsReport
ROSPublish LinesReport
Threshold Moving
CV Erode

@JLLeitschuh JLLeitschuh force-pushed the refactor/operation-api branch 3 times, most recently from 45b9c26 to 6abb294 Compare May 21, 2016 01:43
for (OutputSocket socket : e.getStep().getOutputSockets()) {
if (socket == this.outputSocket) {
this.eventBus.post(new ConnectionRemovedEvent(this));
this.remove();
Copy link
Member

Choose a reason for hiding this comment

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

Can you remove this?

Copy link
Member

Choose a reason for hiding this comment

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

See my note on line 97

public InputSocket<?>[] createInputSockets(EventBus eventBus) {
throw new UnsupportedOperationException("This method should not be used");
public List<InputSocket> getInputSockets() {
return ImmutableList.of(switcherSocket, inputSocket);
Copy link
Member

Choose a reason for hiding this comment

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

Style with new lines

@AustinShalit
Copy link
Member

Regarding the icon issue: InputStreams can only be read once. Two ways to solve it:

  1. Mark the stream before you read it and then reset it every time you are done reading the stream
  2. Use the stream once to save the information to an Image object

@SamCarlberg
Copy link
Member

Huh, I figured that the constructor would close the stream. Should just change the icons utility class to return the icons (and cache them in memory) instead of streams.

- Operations now use local state variables for input and output sockets rather than regenerating them on the fly
- Moved name, description, category, icon, and aliases to a separate description object
- Socket classes are now interfaces
- Refactors Generated Operations to be in source code
- Changed socket get methods to return List<FooSocket> instead of FooSocket<?>[]
@JLLeitschuh JLLeitschuh force-pushed the refactor/operation-api branch from 6abb294 to 3cdd6e0 Compare May 21, 2016 21:20
protected final String getNetworkProtocolNameAcronym() {
return "ROS";
}
private final JavaToMessageConverter<D, ?> converter;

Choose a reason for hiding this comment

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

@JLLeitschuh JLLeitschuh merged commit dc52336 into WPIRoboticsProjects:master May 23, 2016
@AustinShalit AustinShalit added this to the v2.0.0 milestone Jul 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants