Setting up compilation

This commit is contained in:
nsubiron 2017-07-26 11:59:31 +02:00
parent 0a0bc3b94e
commit 72e3e7d18f
5 changed files with 20 additions and 8 deletions

View File

@ -163,7 +163,7 @@ def test_carla_client():
logging.info('connecting secondary clients')
client.connect_secondary_clients()
for x in xrange(0, 20):
for x in xrange(0, 100):
logging.info('waiting for measurements')
data = client.read_measurements()
if not data:
@ -176,8 +176,9 @@ def test_carla_client():
data = client.read_images()
logging.info('received %d bytes of images', len(data) if data is not None else 0)
# logging.info('Taking a nap...')
# time.sleep(10)
if (x+1) % 10 == 0:
logging.info('Taking a nap...')
time.sleep(2)
logging.info('sending control')
client.write_control(steer=-2.3, throttle=1.0, reverse=True)

View File

@ -2,8 +2,7 @@
#pragma once
#include <carla/carla_server.h>
#include "carla/server/CarlaServerAPI.h"
#include "carla/server/Protobuf.h"
#include "carla/server/RequestNewEpisode.h"

View File

@ -0,0 +1,13 @@
// CARLA, Copyright (C) 2017 Computer Vision Center (CVC) Project Settings.
#pragma once
#if defined(_MSC_VER)
# define CARLA_SERVER_API __declspec(dllexport) extern
#elif defined(__GNUC__) || defined(__clang__)
# define CARLA_SERVER_API __attribute__((visibility("default"))) extern
#else
# error Compiler not supported!
#endif
#include <carla/carla_server.h>

View File

@ -5,10 +5,9 @@
#include <cstdint>
#include <memory>
#include <carla/carla_server.h>
#include "carla/ArrayView.h"
#include "carla/NonCopyable.h"
#include "carla/server/CarlaServerAPI.h"
#include "carla/server/ServerTraits.h"
namespace carla {

View File

@ -4,7 +4,7 @@
#include <memory>
#include <carla/carla_server.h>
#include "carla/server/CarlaServerAPI.h"
namespace carla {
namespace server {