ros_msgs.msg.dds.BigNumSequence 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 BigNumSequence extends Packet implements Settable, EpsilonComparable
{
public us.ihmc.idl.IDLSequence.Object large_sequence_;
public BigNumSequence()
{
large_sequence_ = new us.ihmc.idl.IDLSequence.Object (10000, new ros_msgs.msg.dds.NumPubSubType());
}
public BigNumSequence(BigNumSequence other)
{
this();
set(other);
}
public void set(BigNumSequence other)
{
large_sequence_.set(other.large_sequence_);
}
public us.ihmc.idl.IDLSequence.Object getLargeSequence()
{
return large_sequence_;
}
public static Supplier getPubSubType()
{
return BigNumSequencePubSubType::new;
}
@Override
public Supplier getPubSubTypePacket()
{
return BigNumSequencePubSubType::new;
}
@Override
public boolean epsilonEquals(BigNumSequence other, double epsilon)
{
if(other == null) return false;
if(other == this) return true;
if (this.large_sequence_.size() != other.large_sequence_.size()) { return false; }
else
{
for (int i = 0; i < this.large_sequence_.size(); i++)
{ if (!this.large_sequence_.get(i).epsilonEquals(other.large_sequence_.get(i), epsilon)) return false; }
}
return true;
}
@Override
public boolean equals(Object other)
{
if(other == null) return false;
if(other == this) return true;
if(!(other instanceof BigNumSequence)) return false;
BigNumSequence otherMyClass = (BigNumSequence) other;
if (!this.large_sequence_.equals(otherMyClass.large_sequence_)) return false;
return true;
}
@Override
public java.lang.String toString()
{
StringBuilder builder = new StringBuilder();
builder.append("BigNumSequence {");
builder.append("large_sequence=");
builder.append(this.large_sequence_);
builder.append("}");
return builder.toString();
}
}