fix bzz include

This commit is contained in:
dave 2017-05-09 13:28:32 -04:00
parent f8917cd39e
commit 149de3d60b
5 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,6 @@
# We need this for 2D vectors
# Make sure you pass the correct include path to "bzzc -I <path1:path2> ..."
include "/home/ubuntu/buzz/src/include/vec2.bzz"
include "vec2.bzz"
####################################################################################################
# Updater related
# This should be here for the updater to work, changing position of code will crash the updater

Binary file not shown.

Binary file not shown.

View File

@ -1,3 +1,4 @@
include "vec2.bzz"
####################################################################################################
# Updater related
# This should be here for the updater to work, changing position of code will crash the updater
@ -12,8 +13,8 @@ function init(){
s = swarm.create(1)
s.join()
v = stigmergy.create(5)
#t= {}
#v.put("p",t)
t= {}
v.put("p",t)
v.put("u",1)
}
@ -26,7 +27,7 @@ function step() {
#v.put("p",tmp)
v.put("u",2)
}
#log(v.get("p"))
log(v.get("p"))
}
# Executed once when the robot (or the simulator) is reset.

View File

@ -271,7 +271,7 @@ namespace rosbzz_node{
//bzzfile_in_compile.str("");
std::string name = bzzfile_name.substr(bzzfile_name.find_last_of("/\\") + 1);
name = name.substr(0,name.find_last_of("."));
bzzfile_in_compile << "bzzc -I " << path << "script/include/"; //<<" "<<path<< name<<".basm";
bzzfile_in_compile << "bzzc -I " << path << "include/"; //<<" "<<path<< name<<".basm";
//bzzfile_in_compile.str("");
//bzzfile_in_compile <<"bzzasm "<<path<<name<<".basm "<<path<<name<<".bo "<<path<<name<<".bdbg";
//system(bzzfile_in_compile.str().c_str());