ros_msgs.msg.dds.EmptyOne Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ros2-msg-to-pubsub-generator-test
Show all versions of ros2-msg-to-pubsub-generator-test
ROS2 Msg To PubSub Generator
package ros_msgs.msg.dds;
import us.ihmc.communication.packets.Packet;
import us.ihmc.euclid.interfaces.Settable;
import us.ihmc.euclid.interfaces.EpsilonComparable;
import java.util.function.Supplier;
import us.ihmc.pubsub.TopicDataType;
public class EmptyOne extends Packet implements Settable, EpsilonComparable
{
public boolean unused_placeholder_field_;
public EmptyOne()
{
}
public EmptyOne(EmptyOne other)
{
this();
set(other);
}
public void set(EmptyOne other)
{
unused_placeholder_field_ = other.unused_placeholder_field_;
}
public void setUnusedPlaceholderField(boolean unused_placeholder_field)
{
unused_placeholder_field_ = unused_placeholder_field;
}
public boolean getUnusedPlaceholderField()
{
return unused_placeholder_field_;
}
public static Supplier getPubSubType()
{
return EmptyOnePubSubType::new;
}
@Override
public Supplier getPubSubTypePacket()
{
return EmptyOnePubSubType::new;
}
@Override
public boolean epsilonEquals(EmptyOne other, double epsilon)
{
if(other == null) return false;
if(other == this) return true;
if (!us.ihmc.idl.IDLTools.epsilonEqualsBoolean(this.unused_placeholder_field_, other.unused_placeholder_field_, epsilon)) return false;
return true;
}
@Override
public boolean equals(Object other)
{
if(other == null) return false;
if(other == this) return true;
if(!(other instanceof EmptyOne)) return false;
EmptyOne otherMyClass = (EmptyOne) other;
if(this.unused_placeholder_field_ != otherMyClass.unused_placeholder_field_) return false;
return true;
}
@Override
public java.lang.String toString()
{
StringBuilder builder = new StringBuilder();
builder.append("EmptyOne {");
builder.append("unused_placeholder_field=");
builder.append(this.unused_placeholder_field_);
builder.append("}");
return builder.toString();
}
}