intel / collision-avoidance-library

A framework for testing and benchmarking collision avoidance strategies
Apache License 2.0
81 stars 39 forks source link

Add coav-sim.sh - v2 #77

Closed rchiossi closed 7 years ago

rchiossi commented 7 years ago

Simple script to automate the testing of coav-control.

rchiossi commented 7 years ago

Sorry for this mess. I tried to rush it and it didn't work out. =(

mbelluzzo commented 7 years ago

After several tests to see why it wasn't working with jmavsim anymore, I got my old test bin from prior coav-control and realized that I was using a custom upd port. So I made #79 to add support to set this port on coav-control and coav-sim should set the port depending on the autopilot in use. I think that in the case of coav-sim.sh we should overwrite the -p option if it happens to be present on $@, so just append something like "$@ -p PORT" should fix it.

rchiossi commented 7 years ago

Actually, if you are having port conflicts if may be just that you are using an older version of gazebo-sitl, since we changed the port there to avoid conflicts.

mbelluzzo commented 7 years ago

hhmm let me check that.

mbelluzzo commented 7 years ago

Ninjando :-)

mbelluzzo commented 7 years ago

AUTOPILOT=AP_APM ./coav-sim.sh -d DI_OBSTACLE -a QC_SHIFT_AVOIDANCE -s ST_GAZEBO_REALSENSE

It's almost there. But log messages it may be something between arducopter-sitl and gazebo now.

mbelluzzo commented 7 years ago

Merged with basic logging to files meanwhile.