TestClient.java
Go to the documentation of this file.
00001 
00009 package org.ros.dynamic_reconfigure.test;
00010 
00011 import static org.junit.Assert.*;
00012 
00013 import org.junit.After;
00014 import org.junit.Before;
00015 import org.junit.Test;
00016 import org.ros.dynamic_reconfigure.client.Client;
00017 import org.ros.dynamic_reconfigure.test.reference.AllTestConfig;
00018 import org.ros.message.MessageListener;
00019 import org.ros.node.ConnectedNode;
00020 import org.ros.node.Node;
00021 
00022 import dynamic_reconfigure.Config;
00023 import dynamic_reconfigure.ConfigDescription;
00024 
00030 public class TestClient {
00031 
00035     @Before
00036     public void setUp() throws Exception {
00037     }
00038 
00042     @After
00043     public void tearDown() throws Exception {
00044     }
00045 
00046     @Test
00047     public void test() {
00048         ConnectedNode node = null;
00049         AllTestConfig config = null;
00050 
00051         MessageListener<ConfigDescription> callbackDescription = new MessageListener<ConfigDescription>() {
00052 
00053             @Override
00054             public void onNewMessage(ConfigDescription arg0) {
00055                 // TODO Auto-generated method stub
00056 
00057             }
00058         };
00059         MessageListener<Config> callbackConfig = new MessageListener<Config>() {
00060 
00061             @Override
00062             public void onNewMessage(Config arg0) {
00063                 // TODO Auto-generated method stub
00064 
00065             }
00066         };
00067 
00068         Client client = new Client(node, "", callbackDescription, callbackConfig);
00069         config = client.updateConfiguration(config);
00070     }
00071 
00072 }


rosjava_dynamic_reconfigure
Author(s): Mickaƫl Gaillard , Erwan Le Huitouze
autogenerated on Thu Jun 6 2019 22:01:52