Skip to content

Commit

Permalink
Disable ROS 1 support, removing all transitive dependencies but keepi…
Browse files Browse the repository at this point in the history
…ng old code compiling.
  • Loading branch information
calvertdw committed Dec 5, 2024
1 parent 5051931 commit 1e8d365
Show file tree
Hide file tree
Showing 133 changed files with 4,644 additions and 1,436 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import org.ros.namespace.GraphName;
import org.ros.node.AbstractNodeMain;
import org.ros.node.ConnectedNode;
import org.ros.node.DefaultNodeMainExecutor;
//import org.ros.node.DefaultNodeMainExecutor;
import org.ros.node.NodeConfiguration;
import org.ros.node.NodeMainExecutor;
import org.ros.node.topic.Publisher;
Expand Down Expand Up @@ -393,8 +393,8 @@ public static void main(String[] args) throws URISyntaxException
master = new URI(MASTER_URI);

NodeConfiguration nodeConfiguration = RosTools.createNodeConfiguration(master);
NodeMainExecutor nodeMainExecutor = DefaultNodeMainExecutor.newDefault();
nodeMainExecutor.execute(new SandiaHandManualControlUI(), nodeConfiguration);
// NodeMainExecutor nodeMainExecutor = DefaultNodeMainExecutor.newDefault();
// nodeMainExecutor.execute(new SandiaHandManualControlUI(), nodeConfiguration);
}

class FingerJointSliderMouseListener implements MouseListener
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import map_sense.RawGPUPlanarRegionList;
import org.apache.commons.lang3.mutable.MutableInt;
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.LittleEndianHeapChannelBuffer;
//import org.jboss.netty.buffer.LittleEndianHeapChannelBuffer;
import org.ros.message.Duration;
import org.ros.message.Time;
import sensor_msgs.PointCloud2;
Expand Down Expand Up @@ -237,15 +237,15 @@ private static PointCloud2 packMessage(PointCloud2 message, Point3D[] points)
message.setIsDense(true);
message.setFields(pointType.getPointField());

ChannelBuffer buffer = new LittleEndianHeapChannelBuffer(dataLength);
for (int i = 0; i < points.length; i++)
{
buffer.writeFloat((float) points[i].getX());
buffer.writeFloat((float) points[i].getY());
buffer.writeFloat((float) points[i].getZ());
buffer.writeFloat(100.0f);
}
message.setData(buffer);
// ChannelBuffer buffer = new LittleEndianHeapChannelBuffer(dataLength);
// for (int i = 0; i < points.length; i++)
// {
// buffer.writeFloat((float) points[i].getX());
// buffer.writeFloat((float) points[i].getY());
// buffer.writeFloat((float) points[i].getZ());
// buffer.writeFloat(100.0f);
// }
// message.setData(buffer);

return message;
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1e8d365

Please sign in to comment.