Setting up compilation
This commit is contained in:
parent
0a0bc3b94e
commit
72e3e7d18f
|
@ -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)
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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>
|
|
@ -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 {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
#include <memory>
|
||||
|
||||
#include <carla/carla_server.h>
|
||||
#include "carla/server/CarlaServerAPI.h"
|
||||
|
||||
namespace carla {
|
||||
namespace server {
|
||||
|
|
Loading…
Reference in New Issue