ROS中自定义消息的发布和订阅
ROS自定义msg类型及使用
记录我的调试bug历程,
找不到自定义消息类型的文件 bug
找不到.h文件是电脑编译顺序的问题,先把add_executable(swarm_node_v2 src/swarm_node_v2.cpp)
以及
target_link_libraries(swarm_node_v2${catkin_LIBRARIES})
注释,重新运行,给电脑生成.h文件的时间再进行编译。
第二点,各种发布订阅的消息类型要匹配上,如果匹配不上会报错。
第三点,自定义的消息类型的使用规则有一点像C++里面的class类,注意给我们的名字变量链接上。
Echo the topic to each all birds publish their position and see something
是提示我们查看消息类型,rostopic list,rostopic echo /pos 显示最终结果。
pos.name = ros::this_node::getName();
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~$ cd ros
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ roslaunch swarm XinLAB2part2.launch
RLException: [XinLAB2part2.launch] is neither a launch file in package [swarm] nor is [swarm] a launch file name
The traceback for the exception was written to the log file
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ source devel/setup.bash
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ roslaunch swarm XinLAB2part2.launch
... logging to /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/roslaunch-warmtree-HP-Pavilion-Laptop-15-cc5xx-10355.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://warmtree-HP-Pavilion-Laptop-15-cc5xx:37183/
SUMMARY
========
CLEAR PARAMETERS
* /bluesim/blue1/
* /bluesim/blue2/
* /bluesim/blue3/
* /bluesim/blue4/
* /bluesim/blue5/
* /bluesim/blue_swarm/
* /redsim/red1/
* /redsim/red2/
* /redsim/red3/
* /redsim/red4/
* /redsim/red5/
* /redsim/red_swarm/
PARAMETERS
* /bluesim/blue_swarm/move_key: 98
* /redsim/red_swarm/move_key: 114
* /rosdistro: melodic
* /rosversion: 1.14.3
* /world_size: 2.0
NODES
/bluesim/
blue1 (swarm/swarm_node_v2)
blue2 (swarm/swarm_node_v2)
blue3 (swarm/swarm_node_v2)
blue4 (swarm/swarm_node_v2)
blue5 (swarm/swarm_node_v2)
blue_swarm (swarm/swarm_behavior)
/redsim/
red1 (swarm/swarm_node_v2)
red2 (swarm/swarm_node_v2)
red3 (swarm/swarm_node_v2)
red4 (swarm/swarm_node_v2)
red5 (swarm/swarm_node_v2)
red_swarm (swarm/swarm_behavior)
/
teleop (capture_key/capture_key_node)
ROS_MASTER_URI=http://localhost:11311
process[teleop-1]: started with pid [10371]
process[bluesim/blue_swarm-2]: started with pid [10372]
ERROR: cannot launch node of type [swarm/swarm_node_v2]: can't locate node [swarm_node_v2] in package [swarm]
ERROR: cannot launch node of type [swarm/swarm_node_v2]: can't locate node [swarm_node_v2] in package [swarm]
ERROR: cannot launch node of type [swarm/swarm_node_v2]: can't locate node [swarm_node_v2] in package [swarm]
ERROR: cannot launch node of type [swarm/swarm_node_v2]: can't locate node [swarm_node_v2] in package [swarm]
ERROR: cannot launch node of type [swarm/swarm_node_v2]: can't locate node [swarm_node_v2] in package [swarm]
process[redsim/red_swarm-8]: started with pid [10383]
ERROR: cannot launch node of type [swarm/swarm_node_v2]: can't locate node [swarm_node_v2] in package [swarm]
ERROR: cannot launch node of type [swarm/swarm_node_v2]: can't locate node [swarm_node_v2] in package [swarm]
ERROR: cannot launch node of type [swarm/swarm_node_v2]: can't locate node [swarm_node_v2] in package [swarm]
ERROR: cannot launch node of type [swarm/swarm_node_v2]: can't locate node [swarm_node_v2] in package [swarm]
ERROR: cannot launch node of type [swarm/swarm_node_v2]: can't locate node [swarm_node_v2] in package [swarm]
^[[A^C[redsim/red_swarm-8] killing on exit
[bluesim/blue_swarm-2] killing on exit
[teleop-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.2 seconds ]
_______________________________________________________________________________
Errors << swarm:check /home/warmtree/ros/logs/swarm/build.check.012.log
CMake Error at /home/warmtree/ros/src/swarm/CMakeLists.txt:111 (add_executable):
add_executable cannot create target "swarm_node" because another target
with the same name already exists. The existing target is an executable
created in source directory "/home/warmtree/ros/src/swarm". See
documentation for policy CMP0002 for more details.
CMake Error at /home/warmtree/ros/src/swarm/CMakeLists.txt:122 (target_link_libraries):
Cannot specify link libraries for target "swarm_node_v2" which is not built
by this project.
make: *** [cmake_check_build_system] Error 1
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make cmake_check_build_system; cd -
...............................................................................
Failed << swarm:check [ Exited with code 2 ]
Failed <<< swarm [ 1.0 seconds ]
[build] Summary: 1 of 2 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 1.0 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.2 seconds ]
_______________________________________________________________________________
Errors << swarm:check /home/warmtree/ros/logs/swarm/build.check.013.log
CMake Error at /home/warmtree/ros/src/swarm/CMakeLists.txt:122 (target_link_libraries):
Cannot specify link libraries for target "swarm_node_v2" which is not built
by this project.
make: *** [cmake_check_build_system] Error 1
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make cmake_check_build_system; cd -
...............................................................................
Failed << swarm:check [ Exited with code 2 ]
Failed <<< swarm [ 1.0 seconds ]
[build] Summary: 1 of 2 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 1.0 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ source devel/setup.bash
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.2 seconds ]
_______________________________________________________________________________
Errors << swarm:check /home/warmtree/ros/logs/swarm/build.check.014.log
CMake Error at /home/warmtree/ros/src/swarm/CMakeLists.txt:122 (target_link_libraries):
Cannot specify link libraries for target "swarm_node_v2" which is not built
by this project.
make: *** [cmake_check_build_system] Error 1
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make cmake_check_build_system; cd -
...............................................................................
Failed << swarm:check [ Exited with code 2 ]
Failed <<< swarm [ 0.9 seconds ]
[build] Summary: 1 of 2 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 0.9 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.2 seconds ]
_______________________________________________________________________________
Errors << swarm:make /home/warmtree/ros/logs/swarm/build.make.012.log
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp: In function ‘int main(int, char**)’:
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:130:47: error: ‘NameAndPose’ was not declared in this scope
ros::Publisher pubPos = nh_glob.advertise<NameAndPose::Point>("/pos",1);
^~~~~~~~~~~
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:130:37: error: parse error in template argument list
ros::Publisher pubPos = nh_glob.advertise<NameAndPose::Point>("/pos",1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:130:75: error: no matching function for call to ‘ros::NodeHandle::advertise<<expression error> >(const char [5], int)’
ros::Publisher pubPos = nh_glob.advertise<NameAndPose::Point>("/pos",1);
^
In file included from /opt/ros/melodic/include/ros/ros.h:45:0,
from /home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:40:
/opt/ros/melodic/include/ros/node_handle.h:249:15: note: candidate: template<class M> ros::Publisher ros::NodeHandle::advertise(const string&, uint32_t, bool)
Publisher advertise(const std::string& topic, uint32_t queue_size, bool latch = false)
^~~~~~~~~
/opt/ros/melodic/include/ros/node_handle.h:249:15: note: template argument deduction/substitution failed:
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:130:75: error: template argument 1 is invalid
ros::Publisher pubPos = nh_glob.advertise<NameAndPose::Point>("/pos",1);
^
In file included from /opt/ros/melodic/include/ros/ros.h:45:0,
from /home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:40:
/opt/ros/melodic/include/ros/node_handle.h:315:13: note: candidate: template<class M> ros::Publisher ros::NodeHandle::advertise(const string&, uint32_t, const SubscriberStatusCallback&, const SubscriberStatusCallback&, const VoidConstPtr&, bool)
Publisher advertise(const std::string& topic, uint32_t queue_size,
^~~~~~~~~
/opt/ros/melodic/include/ros/node_handle.h:315:13: note: template argument deduction/substitution failed:
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:130:75: error: template argument 1 is invalid
ros::Publisher pubPos = nh_glob.advertise<NameAndPose::Point>("/pos",1);
^
make[2]: *** [CMakeFiles/swarm_node_v2.dir/src/swarm_node_v2.cpp.o] Error 1
make[1]: *** [CMakeFiles/swarm_node_v2.dir/all] Error 2
make: *** [all] Error 2
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make --jobserver-fds=4,5 -j; cd -
...............................................................................
Failed << swarm:make [ Exited with code 2 ]
Failed <<< swarm [ 2.6 seconds ]
[build] Summary: 1 of 2 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 2.6 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.2 seconds ]
_______________________________________________________________________________
Errors << swarm:make /home/warmtree/ros/logs/swarm/build.make.013.log
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp: In function ‘int main(int, char**)’:
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:130:47: error: ‘NameAndPose’ was not declared in this scope
ros::Publisher pubPos = nh_glob.advertise<NameAndPose::Point>("/pos",1);
^~~~~~~~~~~
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:130:47: note: suggested alternative:
In file included from /home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:45:0:
/home/warmtree/ros/devel/.private/swarm/include/swarm/NameAndPose.h:54:54: note: ‘swarm::NameAndPose’
typedef ::swarm::NameAndPose_<std::allocator<void> > NameAndPose;
^~~~~~~~~~~
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:130:37: error: parse error in template argument list
ros::Publisher pubPos = nh_glob.advertise<NameAndPose::Point>("/pos",1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:130:75: error: no matching function for call to ‘ros::NodeHandle::advertise<<expression error> >(const char [5], int)’
ros::Publisher pubPos = nh_glob.advertise<NameAndPose::Point>("/pos",1);
^
In file included from /opt/ros/melodic/include/ros/ros.h:45:0,
from /home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:40:
/opt/ros/melodic/include/ros/node_handle.h:249:15: note: candidate: template<class M> ros::Publisher ros::NodeHandle::advertise(const string&, uint32_t, bool)
Publisher advertise(const std::string& topic, uint32_t queue_size, bool latch = false)
^~~~~~~~~
/opt/ros/melodic/include/ros/node_handle.h:249:15: note: template argument deduction/substitution failed:
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:130:75: error: template argument 1 is invalid
ros::Publisher pubPos = nh_glob.advertise<NameAndPose::Point>("/pos",1);
^
In file included from /opt/ros/melodic/include/ros/ros.h:45:0,
from /home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:40:
/opt/ros/melodic/include/ros/node_handle.h:315:13: note: candidate: template<class M> ros::Publisher ros::NodeHandle::advertise(const string&, uint32_t, const SubscriberStatusCallback&, const SubscriberStatusCallback&, const VoidConstPtr&, bool)
Publisher advertise(const std::string& topic, uint32_t queue_size,
^~~~~~~~~
/opt/ros/melodic/include/ros/node_handle.h:315:13: note: template argument deduction/substitution failed:
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:130:75: error: template argument 1 is invalid
ros::Publisher pubPos = nh_glob.advertise<NameAndPose::Point>("/pos",1);
^
make[2]: *** [CMakeFiles/swarm_node_v2.dir/src/swarm_node_v2.cpp.o] Error 1
make[1]: *** [CMakeFiles/swarm_node_v2.dir/all] Error 2
make: *** [all] Error 2
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make --jobserver-fds=4,5 -j; cd -
...............................................................................
Failed << swarm:make [ Exited with code 2 ]
Failed <<< swarm [ 1.8 seconds ]
[build] Summary: 1 of 2 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 1.8 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.2 seconds ]
_______________________________________________________________________________
Errors << swarm:make /home/warmtree/ros/logs/swarm/build.make.014.log
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp: In function ‘int main(int, char**)’:
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:130:67: error: invalid use of non-static data member ‘swarm::NameAndPose_<std::allocator<void> >::Point’
ros::Publisher pubPos = nh_glob.advertise<swarm::NameAndPose::Point>("/pos",1);
^~~~~
In file included from /home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:45:0:
/home/warmtree/ros/devel/.private/swarm/include/swarm/NameAndPose.h:43:15: note: declared here
_Point_type Point;
^~~~~
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:130:82: error: no matching function for call to ‘ros::NodeHandle::advertise<<expression error> >(const char [5], int)’
ros::Publisher pubPos = nh_glob.advertise<swarm::NameAndPose::Point>("/pos",1);
^
In file included from /opt/ros/melodic/include/ros/ros.h:45:0,
from /home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:40:
/opt/ros/melodic/include/ros/node_handle.h:249:15: note: candidate: template<class M> ros::Publisher ros::NodeHandle::advertise(const string&, uint32_t, bool)
Publisher advertise(const std::string& topic, uint32_t queue_size, bool latch = false)
^~~~~~~~~
/opt/ros/melodic/include/ros/node_handle.h:249:15: note: template argument deduction/substitution failed:
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:130:82: error: template argument 1 is invalid
ros::Publisher pubPos = nh_glob.advertise<swarm::NameAndPose::Point>("/pos",1);
^
In file included from /opt/ros/melodic/include/ros/ros.h:45:0,
from /home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:40:
/opt/ros/melodic/include/ros/node_handle.h:315:13: note: candidate: template<class M> ros::Publisher ros::NodeHandle::advertise(const string&, uint32_t, const SubscriberStatusCallback&, const SubscriberStatusCallback&, const VoidConstPtr&, bool)
Publisher advertise(const std::string& topic, uint32_t queue_size,
^~~~~~~~~
/opt/ros/melodic/include/ros/node_handle.h:315:13: note: template argument deduction/substitution failed:
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:130:82: error: template argument 1 is invalid
ros::Publisher pubPos = nh_glob.advertise<swarm::NameAndPose::Point>("/pos",1);
^
make[2]: *** [CMakeFiles/swarm_node_v2.dir/src/swarm_node_v2.cpp.o] Error 1
make[1]: *** [CMakeFiles/swarm_node_v2.dir/all] Error 2
make: *** [all] Error 2
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make --jobserver-fds=4,5 -j; cd -
...............................................................................
Failed << swarm:make [ Exited with code 2 ]
Failed <<< swarm [ 1.8 seconds ]
[build] Summary: 1 of 2 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 1.8 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.2 seconds ]
Finished <<< swarm [ 2.3 seconds ]
[build] Summary: All 2 packages succeeded!
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: None.
[build] Runtime: 2.4 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ source devel/setup.bash
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ roslaunch swarm XinLAB2part2.launch
... logging to /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/roslaunch-warmtree-HP-Pavilion-Laptop-15-cc5xx-12309.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://warmtree-HP-Pavilion-Laptop-15-cc5xx:34133/
SUMMARY
========
CLEAR PARAMETERS
* /bluesim/blue1/
* /bluesim/blue2/
* /bluesim/blue3/
* /bluesim/blue4/
* /bluesim/blue5/
* /bluesim/blue_swarm/
* /redsim/red1/
* /redsim/red2/
* /redsim/red3/
* /redsim/red4/
* /redsim/red5/
* /redsim/red_swarm/
PARAMETERS
* /bluesim/blue_swarm/move_key: 98
* /redsim/red_swarm/move_key: 114
* /rosdistro: melodic
* /rosversion: 1.14.3
* /world_size: 2.0
NODES
/bluesim/
blue1 (swarm/swarm_node_v2)
blue2 (swarm/swarm_node_v2)
blue3 (swarm/swarm_node_v2)
blue4 (swarm/swarm_node_v2)
blue5 (swarm/swarm_node_v2)
blue_swarm (swarm/swarm_behavior)
/redsim/
red1 (swarm/swarm_node_v2)
red2 (swarm/swarm_node_v2)
red3 (swarm/swarm_node_v2)
red4 (swarm/swarm_node_v2)
red5 (swarm/swarm_node_v2)
red_swarm (swarm/swarm_behavior)
/
teleop (capture_key/capture_key_node)
ROS_MASTER_URI=http://localhost:11311
process[teleop-1]: started with pid [12325]
process[bluesim/blue_swarm-2]: started with pid [12326]
process[bluesim/blue1-3]: started with pid [12331]
process[bluesim/blue2-4]: started with pid [12338]
[FATAL] [1587730986.716173113]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum<M>(message)) == "*" || impl_->md5sum_ == mt::md5sum<M>(message)
message =
[FATAL] [1587730986.717243701]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587730986.717280817]:
process[bluesim/blue3-5]: started with pid [12344]
process[bluesim/blue4-6]: started with pid [12351]
process[bluesim/blue5-7]: started with pid [12356]
[FATAL] [1587730986.738601257]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum<M>(message)) == "*" || impl_->md5sum_ == mt::md5sum<M>(message)
message =
[FATAL] [1587730986.739826605]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum<M>(message)) == "*" || impl_->md5sum_ == mt::md5sum<M>(message)
message =
[FATAL] [1587730986.740328641]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587730986.740360802]:
[FATAL] [1587730986.741054766]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587730986.741083324]:
process[redsim/red_swarm-8]: started with pid [12359]
[FATAL] [1587730986.750915520]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum<M>(message)) == "*" || impl_->md5sum_ == mt::md5sum<M>(message)
message =
process[redsim/red1-9]: started with pid [12367]
[FATAL] [1587730986.751661747]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587730986.751690042]:
process[redsim/red2-10]: started with pid [12372]
[FATAL] [1587730986.763681093]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum<M>(message)) == "*" || impl_->md5sum_ == mt::md5sum<M>(message)
message =
[FATAL] [1587730986.764436140]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587730986.764472612]:
process[redsim/red3-11]: started with pid [12375]
process[redsim/red4-12]: started with pid [12390]
process[redsim/red5-13]: started with pid [12391]
[FATAL] [1587730986.845451933]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum<M>(message)) == "*" || impl_->md5sum_ == mt::md5sum<M>(message)
message =
[FATAL] [1587730986.852923616]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587730986.852961508]:
[FATAL] [1587730986.864892016]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum<M>(message)) == "*" || impl_->md5sum_ == mt::md5sum<M>(message)
message =
[FATAL] [1587730986.871885596]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587730986.871922376]:
[FATAL] [1587730986.874104233]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum<M>(message)) == "*" || impl_->md5sum_ == mt::md5sum<M>(message)
message =
[FATAL] [1587730986.877458255]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum<M>(message)) == "*" || impl_->md5sum_ == mt::md5sum<M>(message)
message =
[FATAL] [1587730986.879776004]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587730986.879817504]:
[FATAL] [1587730986.880276016]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587730986.880308676]:
[FATAL] [1587730986.883295695]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum<M>(message)) == "*" || impl_->md5sum_ == mt::md5sum<M>(message)
message =
[FATAL] [1587730986.884553469]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587730986.884594400]:
[bluesim/blue3-5] process has died [pid 12344, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=blue3 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue3-5.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue3-5*.log
[bluesim/blue5-7] process has died [pid 12356, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=blue5 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue5-7.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue5-7*.log
[bluesim/blue2-4] process has died [pid 12338, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=blue2 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue2-4.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue2-4*.log
[bluesim/blue4-6] process has died [pid 12351, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=blue4 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue4-6.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue4-6*.log
[bluesim/blue1-3] process has died [pid 12331, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=blue1 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue1-3.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue1-3*.log
[redsim/red1-9] process has died [pid 12367, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=red1 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red1-9.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red1-9*.log
[redsim/red4-12] process has died [pid 12390, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=red4 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red4-12.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red4-12*.log
[redsim/red5-13] process has died [pid 12391, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=red5 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red5-13.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red5-13*.log
[redsim/red2-10] process has died [pid 12372, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=red2 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red2-10.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red2-10*.log
[redsim/red3-11] process has died [pid 12375, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=red3 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red3-11.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red3-11*.log
^C[redsim/red_swarm-8] killing on exit
[bluesim/blue_swarm-2] killing on exit
[teleop-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.2 seconds ]
_______________________________________________________________________________
Errors << swarm:make /home/warmtree/ros/logs/swarm/build.make.016.log
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp: In function ‘int main(int, char**)’:
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:138:5: error: ‘NameAndPose’ has not been declared
NameAndPose::Point pos ;
^~~~~~~~~~~
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:142:5: error: ‘pos’ was not declared in this scope
pos.x = (1.0*rand())/RAND_MAX*worldSize ; pos.y = (1.0*rand())/RAND_MAX*worldSize ; pos.z = 0.0 ;
^~~
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:142:5: note: suggested alternative: ‘pow’
pos.x = (1.0*rand())/RAND_MAX*worldSize ; pos.y = (1.0*rand())/RAND_MAX*worldSize ; pos.z = 0.0 ;
^~~
pow
make[2]: *** [CMakeFiles/swarm_node_v2.dir/src/swarm_node_v2.cpp.o] Error 1
make[1]: *** [CMakeFiles/swarm_node_v2.dir/all] Error 2
make: *** [all] Error 2
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make --jobserver-fds=4,5 -j; cd -
...............................................................................
Failed << swarm:make [ Exited with code 2 ]
Failed <<< swarm [ 1.7 seconds ]
[build] Summary: 1 of 2 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 1.8 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.2 seconds ]
_______________________________________________________________________________
Errors << swarm:make /home/warmtree/ros/logs/swarm/build.make.017.log
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp: In function ‘int main(int, char**)’:
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:142:9: error: ‘swarm::NameAndPose {aka struct swarm::NameAndPose_<std::allocator<void> >}’ has no member named ‘x’
pos.x = (1.0*rand())/RAND_MAX*worldSize ; pos.y = (1.0*rand())/RAND_MAX*worldSize ; pos.z = 0.0 ;
^
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:142:52: error: ‘swarm::NameAndPose {aka struct swarm::NameAndPose_<std::allocator<void> >}’ has no member named ‘y’
pos.x = (1.0*rand())/RAND_MAX*worldSize ; pos.y = (1.0*rand())/RAND_MAX*worldSize ; pos.z = 0.0 ;
^
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:142:94: error: ‘swarm::NameAndPose {aka struct swarm::NameAndPose_<std::allocator<void> >}’ has no member named ‘z’
pos.x = (1.0*rand())/RAND_MAX*worldSize ; pos.y = (1.0*rand())/RAND_MAX*worldSize ; pos.z = 0.0 ;
^
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:143:26: error: could not convert ‘pos’ from ‘swarm::NameAndPose {aka swarm::NameAndPose_<std::allocator<void> >}’ to ‘geometry_msgs::Point {aka geometry_msgs::Point_<std::allocator<void> >}’
publishMarkerAt( pos ) ;
^
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:147:33: error: conversion from ‘swarm::NameAndPose {aka swarm::NameAndPose_<std::allocator<void> >}’ to non-scalar type ‘geometry_msgs::Point {aka geometry_msgs::Point_<std::allocator<void> >}’ requested
geometry_msgs::Point goal = pos ; // Birds won't move
^~~
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:166:13: error: ‘swarm::NameAndPose {aka struct swarm::NameAndPose_ >}’ has no member named ‘x’
pos.x += Kp*(goal.x-pos.x) ;
^
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:166:33: error: ‘swarm::NameAndPose {aka struct swarm::NameAndPose_ >}’ has no member named ‘x’
pos.x += Kp*(goal.x-pos.x) ;
^
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:167:13: error: ‘swarm::NameAndPose {aka struct swarm::NameAndPose_ >}’ has no member named ‘y’
pos.y += Kp*(goal.y-pos.y) ;
^
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:167:33: error: ‘swarm::NameAndPose {aka struct swarm::NameAndPose_ >}’ has no member named ‘y’
pos.y += Kp*(goal.y-pos.y) ;
^
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:172:30: error: could not convert ‘pos’ from ‘swarm::NameAndPose {aka swarm::NameAndPose_ >}’ to ‘geometry_msgs::Point {aka geometry_msgs::Point_ >}’
publishMarkerAt( pos ) ;
^
make[2]: *** [CMakeFiles/swarm_node_v2.dir/src/swarm_node_v2.cpp.o] Error 1
make[1]: *** [CMakeFiles/swarm_node_v2.dir/all] Error 2
make: *** [all] Error 2
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make --jobserver-fds=4,5 -j; cd -
...............................................................................
Failed << swarm:make [ Exited with code 2 ]
Failed <<< swarm [ 1.8 seconds ]
[build] Summary: 1 of 2 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 1.8 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found ' 2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.2 seconds ]
_______________________________________________________________________________
Errors << swarm:make /home/warmtree/ros/logs/swarm/build.make.018.log
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp: In function ‘int main(int, char**)’:
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:142:9: error: ‘swarm::NameAndPose {aka struct swarm::NameAndPose_ >}’ has no member named ‘point’; did you mean ‘Point’?
pos.point.x = (1.0*rand())/RAND_MAX*worldSize ; pos.point.y = (1.0*rand())/RAND_MAX*worldSize ; pos.point.z = 0.0 ;
^~~~~
Point
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:142:58: error: ‘swarm::NameAndPose {aka struct swarm::NameAndPose_ >}’ has no member named ‘point’; did you mean ‘Point’?
pos.point.x = (1.0*rand())/RAND_MAX*worldSize ; pos.point.y = (1.0*rand())/RAND_MAX*worldSize ; pos.point.z = 0.0 ;
^~~~~
Point
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:142:106: error: ‘swarm::NameAndPose {aka struct swarm::NameAndPose_ >}’ has no member named ‘point’; did you mean ‘Point’?
pos.point.x = (1.0*rand())/RAND_MAX*worldSize ; pos.point.y = (1.0*rand())/RAND_MAX*worldSize ; pos.point.z = 0.0 ;
^~~~~
Point
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:143:26: error: ‘swarm::NameAndPose {aka struct swarm::NameAndPose_ >}’ has no member named ‘point’; did you mean ‘Point’?
publishMarkerAt( pos.point ) ;
^~~~~
Point
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:147:33: error: conversion from ‘swarm::NameAndPose {aka swarm::NameAndPose_ >}’ to non-scalar type ‘geometry_msgs::Point {aka geometry_msgs::Point_ >}’ requested
geometry_msgs::Point goal = pos ; // Birds won' t move
^~~
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:166:13: error: ‘swarm::NameAndPose {aka struct swarm::NameAndPose_<std::allocator<void> >}’ has no member named ‘x’
pos.x += Kp*(goal.x-pos.x) ;
^
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:166:33: error: ‘swarm::NameAndPose {aka struct swarm::NameAndPose_<std::allocator<void> >}’ has no member named ‘x’
pos.x += Kp*(goal.x-pos.x) ;
^
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:167:13: error: ‘swarm::NameAndPose {aka struct swarm::NameAndPose_<std::allocator<void> >}’ has no member named ‘y’
pos.y += Kp*(goal.y-pos.y) ;
^
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:167:33: error: ‘swarm::NameAndPose {aka struct swarm::NameAndPose_<std::allocator<void> >}’ has no member named ‘y’
pos.y += Kp*(goal.y-pos.y) ;
^
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:172:30: error: could not convert ‘pos’ from ‘swarm::NameAndPose {aka swarm::NameAndPose_<std::allocator<void> >}’ to ‘geometry_msgs::Point {aka geometry_msgs::Point_<std::allocator<void> >}’
publishMarkerAt( pos ) ;
^
make[2]: *** [CMakeFiles/swarm_node_v2.dir/src/swarm_node_v2.cpp.o] Error 1
make[1]: *** [CMakeFiles/swarm_node_v2.dir/all] Error 2
make: *** [all] Error 2
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make --jobserver-fds=4,5 -j; cd -
...............................................................................
Failed << swarm:make [ Exited with code 2 ]
Failed <<< swarm [ 1.8 seconds ]
[build] Summary: 1 of 2 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 1.8 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.3 seconds ]
_______________________________________________________________________________
Errors << swarm:make /home/warmtree/ros/logs/swarm/build.make.019.log
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp: In function ‘int main(int, char**)’:
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:147:5: error: ‘NameAndPose’ was not declared in this scope
NameAndPose goal = pos ; // Birds won't move
^~~~~~~~~~~
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:147:5: note: suggested alternative:
In file included from /home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:45:0:
/home/warmtree/ros/devel/.private/swarm/include/swarm/NameAndPose.h:54:54: note: ‘swarm::NameAndPose’
typedef ::swarm::NameAndPose_ > NameAndPose;
^~~~~~~~~~~
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:157:17: error: ‘goal’ was not declared in this scope
goal.Point.x = virtualLeader.x + ((1.0*rand())/RAND_MAX-0.5)*0.3*worldSize ;
^~~~
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:157:17: note: suggested alternative: ‘powl’
goal.Point.x = virtualLeader.x + ((1.0*rand())/RAND_MAX-0.5)*0.3*worldSize ;
^~~~
powl
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:166:28: error: ‘goal’ was not declared in this scope
pos.Point.x += Kp*(goal.Point.x-pos.Point.x) ;
^~~~
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:166:28: note: suggested alternative: ‘powl’
pos.Point.x += Kp*(goal.Point.x-pos.Point.x) ;
^~~~
powl
make[2]: *** [CMakeFiles/swarm_node_v2.dir/src/swarm_node_v2.cpp.o] Error 1
make[1]: *** [CMakeFiles/swarm_node_v2.dir/all] Error 2
make: *** [all] Error 2
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make --jobserver-fds=4,5 -j; cd -
...............................................................................
Failed << swarm:make [ Exited with code 2 ]
Failed <<< swarm [ 1.8 seconds ]
[build] Summary: 1 of 2 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 1.8 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found ' 2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.2 seconds ]
Finished <<< swarm [ 2.3 seconds ]
[build] Summary: All 2 packages succeeded!
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: None.
[build] Runtime: 2.4 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ source devel/setup.bash
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ roslaunch swarm XinLAB2part2.launch
... logging to /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/roslaunch-warmtree-HP-Pavilion-Laptop-15-cc5xx-13510.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://warmtree-HP-Pavilion-Laptop-15-cc5xx:37929/
SUMMARY
========
CLEAR PARAMETERS
* /bluesim/blue1/
* /bluesim/blue2/
* /bluesim/blue3/
* /bluesim/blue4/
* /bluesim/blue5/
* /bluesim/blue_swarm/
* /redsim/red1/
* /redsim/red2/
* /redsim/red3/
* /redsim/red4/
* /redsim/red5/
* /redsim/red_swarm/
PARAMETERS
* /bluesim/blue_swarm/move_key: 98
* /redsim/red_swarm/move_key: 114
* /rosdistro: melodic
* /rosversion: 1.14.3
* /world_size: 2.0
NODES
/bluesim/
blue1 (swarm/swarm_node_v2)
blue2 (swarm/swarm_node_v2)
blue3 (swarm/swarm_node_v2)
blue4 (swarm/swarm_node_v2)
blue5 (swarm/swarm_node_v2)
blue_swarm (swarm/swarm_behavior)
/redsim/
red1 (swarm/swarm_node_v2)
red2 (swarm/swarm_node_v2)
red3 (swarm/swarm_node_v2)
red4 (swarm/swarm_node_v2)
red5 (swarm/swarm_node_v2)
red_swarm (swarm/swarm_behavior)
/
teleop (capture_key/capture_key_node)
ROS_MASTER_URI=http://localhost:11311
process[teleop-1]: started with pid [13526]
process[bluesim/blue_swarm-2]: started with pid [13527]
process[bluesim/blue1-3]: started with pid [13533]
process[bluesim/blue2-4]: started with pid [13538]
process[bluesim/blue3-5]: started with pid [13545]
[FATAL] [1587731669.872804677]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum(message)) == "*" || impl_->md5sum_ == mt::md5sum(message)
message =
[FATAL] [1587731669.875666619]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587731669.875830478]:
process[bluesim/blue4-6]: started with pid [13547]
process[bluesim/blue5-7]: started with pid [13553]
process[redsim/red_swarm-8]: started with pid [13563]
[FATAL] [1587731669.902015028]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum(message)) == "*" || impl_->md5sum_ == mt::md5sum(message)
message =
[FATAL] [1587731669.905825443]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587731669.905862404]:
[FATAL] [1587731669.912059565]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum(message)) == "*" || impl_->md5sum_ == mt::md5sum(message)
message =
[FATAL] [1587731669.914866232]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587731669.914917388]:
[FATAL] [1587731669.919751809]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum(message)) == "*" || impl_->md5sum_ == mt::md5sum(message)
message =
[FATAL] [1587731669.921185467]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587731669.921235786]:
[FATAL] [1587731669.928360864]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum(message)) == "*" || impl_->md5sum_ == mt::md5sum(message)
message =
[FATAL] [1587731669.929058084]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587731669.929094175]:
process[redsim/red1-9]: started with pid [13565]
process[redsim/red2-10]: started with pid [13575]
[FATAL] [1587731669.984189205]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum(message)) == "*" || impl_->md5sum_ == mt::md5sum(message)
message =
[FATAL] [1587731669.987730722]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587731669.987770165]:
process[redsim/red3-11]: started with pid [13585]
process[redsim/red4-12]: started with pid [13587]
[bluesim/blue1-3] process has died [pid 13533, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=blue1 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue1-3.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue1-3*.log
process[redsim/red5-13]: started with pid [13590]
[FATAL] [1587731670.228912281]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum(message)) == "*" || impl_->md5sum_ == mt::md5sum(message)
message =
[FATAL] [1587731670.233397651]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587731670.233451538]:
[FATAL] [1587731670.234888342]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum(message)) == "*" || impl_->md5sum_ == mt::md5sum(message)
message =
[FATAL] [1587731670.236892340]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587731670.237033779]:
[FATAL] [1587731670.252549146]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum(message)) == "*" || impl_->md5sum_ == mt::md5sum(message)
message =
[FATAL] [1587731670.254201523]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum(message)) == "*" || impl_->md5sum_ == mt::md5sum(message)
message =
[FATAL] [1587731670.254845308]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587731670.254879763]:
[FATAL] [1587731670.255934202]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587731670.255969826]:
[bluesim/blue2-4] process has died [pid 13538, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=blue2 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue2-4.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue2-4*.log
[bluesim/blue5-7] process has died [pid 13553, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=blue5 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue5-7.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue5-7*.log
[redsim/red1-9] process has died [pid 13565, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=red1 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red1-9.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red1-9*.log
[bluesim/blue3-5] process has died [pid 13545, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=blue3 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue3-5.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue3-5*.log
[bluesim/blue4-6] process has died [pid 13547, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=blue4 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue4-6.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue4-6*.log
[redsim/red2-10] process has died [pid 13575, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=red2 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red2-10.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red2-10*.log
[redsim/red3-11] process has died [pid 13585, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=red3 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red3-11.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red3-11*.log
[redsim/red4-12] process has died [pid 13587, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=red4 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red4-12.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red4-12*.log
[redsim/red5-13] process has died [pid 13590, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=red5 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red5-13.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red5-13*.log
^C[redsim/red_swarm-8] killing on exit
[bluesim/blue_swarm-2] killing on exit
[teleop-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ roslaunch swarm XinLAB2part2.launch
... logging to /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/roslaunch-warmtree-HP-Pavilion-Laptop-15-cc5xx-13627.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://warmtree-HP-Pavilion-Laptop-15-cc5xx:40915/
SUMMARY
========
CLEAR PARAMETERS
* /bluesim/blue1/
* /bluesim/blue2/
* /bluesim/blue3/
* /bluesim/blue4/
* /bluesim/blue5/
* /bluesim/blue_swarm/
* /redsim/red1/
* /redsim/red2/
* /redsim/red3/
* /redsim/red4/
* /redsim/red5/
* /redsim/red_swarm/
PARAMETERS
* /bluesim/blue_swarm/move_key: 98
* /redsim/red_swarm/move_key: 114
* /rosdistro: melodic
* /rosversion: 1.14.3
* /world_size: 2.0
NODES
/bluesim/
blue1 (swarm/swarm_node_v2)
blue2 (swarm/swarm_node_v2)
blue3 (swarm/swarm_node_v2)
blue4 (swarm/swarm_node_v2)
blue5 (swarm/swarm_node_v2)
blue_swarm (swarm/swarm_behavior)
/redsim/
red1 (swarm/swarm_node_v2)
red2 (swarm/swarm_node_v2)
red3 (swarm/swarm_node_v2)
red4 (swarm/swarm_node_v2)
red5 (swarm/swarm_node_v2)
red_swarm (swarm/swarm_behavior)
/
teleop (capture_key/capture_key_node)
ROS_MASTER_URI=http://localhost:11311
process[teleop-1]: started with pid [13643]
process[bluesim/blue_swarm-2]: started with pid [13644]
process[bluesim/blue1-3]: started with pid [13650]
process[bluesim/blue2-4]: started with pid [13656]
process[bluesim/blue3-5]: started with pid [13658]
[FATAL] [1587731729.824873068]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum(message)) == "*" || impl_->md5sum_ == mt::md5sum(message)
message =
[FATAL] [1587731729.825516908]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587731729.825546010]:
[FATAL] [1587731729.841851041]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum(message)) == "*" || impl_->md5sum_ == mt::md5sum(message)
message =
[FATAL] [1587731729.843694842]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587731729.843821503]:
process[bluesim/blue4-6]: started with pid [13664]
[FATAL] [1587731729.844938574]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum(message)) == "*" || impl_->md5sum_ == mt::md5sum(message)
message =
[FATAL] [1587731729.846894985]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587731729.846935282]:
process[bluesim/blue5-7]: started with pid [13677]
[FATAL] [1587731729.890244721]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum(message)) == "*" || impl_->md5sum_ == mt::md5sum(message)
message =
[FATAL] [1587731729.892472258]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587731729.892510944]:
[FATAL] [1587731729.903377334]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum(message)) == "*" || impl_->md5sum_ == mt::md5sum(message)
message =
[FATAL] [1587731729.904650701]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587731729.904698769]:
process[redsim/red_swarm-8]: started with pid [13679]
process[redsim/red1-9]: started with pid [13691]
[bluesim/blue1-3] process has died [pid 13650, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=blue1 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue1-3.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue1-3*.log
process[redsim/red2-10]: started with pid [13693]
process[redsim/red3-11]: started with pid [13702]
[FATAL] [1587731730.102442765]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum(message)) == "*" || impl_->md5sum_ == mt::md5sum(message)
message =
[FATAL] [1587731730.103711013]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum(message)) == "*" || impl_->md5sum_ == mt::md5sum(message)
message =
[FATAL] [1587731730.107078890]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587731730.107766169]:
[FATAL] [1587731730.108860696]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587731730.108900195]:
process[redsim/red4-12]: started with pid [13709]
process[redsim/red5-13]: started with pid [13712]
[FATAL] [1587731730.148806183]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum(message)) == "*" || impl_->md5sum_ == mt::md5sum(message)
message =
[FATAL] [1587731730.150415763]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587731730.150553310]:
[FATAL] [1587731730.220743985]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum(message)) == "*" || impl_->md5sum_ == mt::md5sum(message)
message =
[FATAL] [1587731730.222264660]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587731730.222397726]:
[bluesim/blue2-4] process has died [pid 13656, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=blue2 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue2-4.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue2-4*.log
[bluesim/blue3-5] process has died [pid 13658, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=blue3 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue3-5.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue3-5*.log
[bluesim/blue5-7] process has died [pid 13677, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=blue5 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue5-7.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue5-7*.log
[FATAL] [1587731730.273347032]: ASSERTION FAILED
file = /opt/ros/melodic/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum(message)) == "*" || impl_->md5sum_ == mt::md5sum(message)
message =
[FATAL] [1587731730.280385027]: Trying to publish message of type [geometry_msgs/Point/4a842b65f413084dc2b10fb484ea7f17] on a publisher with type [swarm/NameAndPose/70789ab23b27bc09a8ea0c5219a8f974]
[FATAL] [1587731730.288485693]:
[bluesim/blue4-6] process has died [pid 13664, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=blue4 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue4-6.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/bluesim-blue4-6*.log
[redsim/red1-9] process has died [pid 13691, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=red1 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red1-9.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red1-9*.log
[redsim/red2-10] process has died [pid 13693, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=red2 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red2-10.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red2-10*.log
[redsim/red3-11] process has died [pid 13702, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=red3 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red3-11.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red3-11*.log
[redsim/red5-13] process has died [pid 13712, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=red5 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red5-13.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red5-13*.log
[redsim/red4-12] process has died [pid 13709, exit code -5, cmd /home/warmtree/ros/devel/lib/swarm/swarm_node_v2 __name:=red4 __log:=/home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red4-12.log].
log file: /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/redsim-red4-12*.log
^C[redsim/red_swarm-8] killing on exit
[bluesim/blue_swarm-2] killing on exit
[teleop-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found ' 2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.2 seconds ]
Finished <<< swarm [ 2.4 seconds ]
[build] Summary: All 2 packages succeeded!
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: None.
[build] Runtime: 2.4 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ source devel/setup.bash
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ roslaunch swarm XinLAB2part2.launch
... logging to /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/roslaunch-warmtree-HP-Pavilion-Laptop-15-cc5xx-13973.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://warmtree-HP-Pavilion-Laptop-15-cc5xx:37843/
SUMMARY
========
CLEAR PARAMETERS
* /bluesim/blue1/
* /bluesim/blue2/
* /bluesim/blue3/
* /bluesim/blue4/
* /bluesim/blue5/
* /bluesim/blue_swarm/
* /redsim/red1/
* /redsim/red2/
* /redsim/red3/
* /redsim/red4/
* /redsim/red5/
* /redsim/red_swarm/
PARAMETERS
* /bluesim/blue_swarm/move_key: 98
* /redsim/red_swarm/move_key: 114
* /rosdistro: melodic
* /rosversion: 1.14.3
* /world_size: 2.0
NODES
/bluesim/
blue1 (swarm/swarm_node_v2)
blue2 (swarm/swarm_node_v2)
blue3 (swarm/swarm_node_v2)
blue4 (swarm/swarm_node_v2)
blue5 (swarm/swarm_node_v2)
blue_swarm (swarm/swarm_behavior)
/redsim/
red1 (swarm/swarm_node_v2)
red2 (swarm/swarm_node_v2)
red3 (swarm/swarm_node_v2)
red4 (swarm/swarm_node_v2)
red5 (swarm/swarm_node_v2)
red_swarm (swarm/swarm_behavior)
/
teleop (capture_key/capture_key_node)
ROS_MASTER_URI=http://localhost:11311
process[teleop-1]: started with pid [13989]
process[bluesim/blue_swarm-2]: started with pid [13990]
process[bluesim/blue1-3]: started with pid [13996]
process[bluesim/blue2-4]: started with pid [14002]
process[bluesim/blue3-5]: started with pid [14007]
process[bluesim/blue4-6]: started with pid [14014]
process[bluesim/blue5-7]: started with pid [14020]
process[redsim/red_swarm-8]: started with pid [14026]
process[redsim/red1-9]: started with pid [14032]
process[redsim/red2-10]: started with pid [14038]
process[redsim/red3-11]: started with pid [14044]
process[redsim/red4-12]: started with pid [14049]
process[redsim/red5-13]: started with pid [14056]
brbrrb^C[redsim/red5-13] killing on exit
[redsim/red4-12] killing on exit
[redsim/red2-10] killing on exit
[redsim/red3-11] killing on exit
[redsim/red1-9] killing on exit
[redsim/red_swarm-8] killing on exit
[bluesim/blue5-7] killing on exit
[bluesim/blue4-6] killing on exit
[bluesim/blue3-5] killing on exit
[bluesim/blue2-4] killing on exit
[bluesim/blue1-3] killing on exit
[bluesim/blue_swarm-2] killing on exit
[teleop-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.2 seconds ]
_______________________________________________________________________________
Errors << swarm:make /home/warmtree/ros/logs/swarm/build.make.022.log
In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
from /home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:40:
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp: In function ‘int main(int, char**)’:
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:170:33: error: ‘swarm::NameAndPose {aka struct swarm::NameAndPose_ >}’ has no member named ‘ponit’
ROS_INFO(" point [%d]\n", pos.ponit);
^
/opt/ros/melodic/include/ros/console.h:348:165: note: in definition of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
^~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
#define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
^~~~~~~~~~~~
/opt/ros/melodic/include/rosconsole/macros_generated.h:110:23: note: in expansion of macro ‘ROS_LOG’
#define ROS_INFO(...) ROS_LOG(::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
^~~~~~~
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:170:3: note: in expansion of macro ‘ROS_INFO’
ROS_INFO(" point [%d]\n", pos.ponit);
^
make[2]: *** [CMakeFiles/swarm_node_v2.dir/src/swarm_node_v2.cpp.o] Error 1
make[1]: *** [CMakeFiles/swarm_node_v2.dir/all] Error 2
make: *** [all] Error 2
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make --jobserver-fds=4,5 -j; cd -
...............................................................................
Failed << swarm:make [ Exited with code 2 ]
Failed <<< swarm [ 1.8 seconds ]
[build] Summary: 1 of 2 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 1.8 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found ' 2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.2 seconds ]
_______________________________________________________________________________
Errors << swarm:make /home/warmtree/ros/logs/swarm/build.make.023.log
In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
from /home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:40:
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp: In function ‘int main(int, char**)’:
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:170:33: error: ‘swarm::NameAndPose {aka struct swarm::NameAndPose_ >}’ has no member named ‘Ponit’; did you mean ‘Point’?
ROS_INFO(" point [%d]\n", pos.Ponit);
^
/opt/ros/melodic/include/ros/console.h:348:165: note: in definition of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
^~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
#define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
^~~~~~~~~~~~
/opt/ros/melodic/include/rosconsole/macros_generated.h:110:23: note: in expansion of macro ‘ROS_LOG’
#define ROS_INFO(...) ROS_LOG(::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
^~~~~~~
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:170:3: note: in expansion of macro ‘ROS_INFO’
ROS_INFO(" point [%d]\n", pos.Ponit);
^
make[2]: *** [CMakeFiles/swarm_node_v2.dir/src/swarm_node_v2.cpp.o] Error 1
make[1]: *** [CMakeFiles/swarm_node_v2.dir/all] Error 2
make: *** [all] Error 2
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make --jobserver-fds=4,5 -j; cd -
...............................................................................
Failed << swarm:make [ Exited with code 2 ]
Failed <<< swarm [ 1.8 seconds ]
[build] Summary: 1 of 2 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 1.9 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found ' 2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.2 seconds ]
_______________________________________________________________________________
Warnings << swarm:make /home/warmtree/ros/logs/swarm/build.make.024.log
In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
from /home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:40:
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp: In function ‘int main(int, char**)’:
/opt/ros/melodic/include/ros/console.h:348:176: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘swarm::NameAndPose_ >::_Point_type {aka geometry_msgs::Point_ >}’ [-Wformat=]
::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
#define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
^~~~~~~~~~~~
/opt/ros/melodic/include/rosconsole/macros_generated.h:110:23: note: in expansion of macro ‘ROS_LOG’
#define ROS_INFO(...) ROS_LOG(::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
^~~~~~~
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:170:3: note: in expansion of macro ‘ROS_INFO’
ROS_INFO(" point [%d]\n", pos.Point);
^
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make --jobserver-fds=4,5 -j; cd -
...............................................................................
Finished <<< swarm [ 2.4 seconds ]
[build] Summary: All 2 packages succeeded!
[build] Ignored: None.
[build] Warnings: 1 packages succeeded with warnings.
[build] Abandoned: None.
[build] Failed: None.
[build] Runtime: 2.5 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ source devel/setup.bash
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ roslaunch swarm XinLAB2part2.launch
... logging to /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/roslaunch-warmtree-HP-Pavilion-Laptop-15-cc5xx-14851.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://warmtree-HP-Pavilion-Laptop-15-cc5xx:39945/
SUMMARY
========
CLEAR PARAMETERS
* /bluesim/blue1/
* /bluesim/blue2/
* /bluesim/blue3/
* /bluesim/blue4/
* /bluesim/blue5/
* /bluesim/blue_swarm/
* /redsim/red1/
* /redsim/red2/
* /redsim/red3/
* /redsim/red4/
* /redsim/red5/
* /redsim/red_swarm/
PARAMETERS
* /bluesim/blue_swarm/move_key: 98
* /redsim/red_swarm/move_key: 114
* /rosdistro: melodic
* /rosversion: 1.14.3
* /world_size: 2.0
NODES
/bluesim/
blue1 (swarm/swarm_node_v2)
blue2 (swarm/swarm_node_v2)
blue3 (swarm/swarm_node_v2)
blue4 (swarm/swarm_node_v2)
blue5 (swarm/swarm_node_v2)
blue_swarm (swarm/swarm_behavior)
/redsim/
red1 (swarm/swarm_node_v2)
red2 (swarm/swarm_node_v2)
red3 (swarm/swarm_node_v2)
red4 (swarm/swarm_node_v2)
red5 (swarm/swarm_node_v2)
red_swarm (swarm/swarm_behavior)
/
teleop (capture_key/capture_key_node)
ROS_MASTER_URI=http://localhost:11311
process[teleop-1]: started with pid [14867]
process[bluesim/blue_swarm-2]: started with pid [14868]
process[bluesim/blue1-3]: started with pid [14874]
process[bluesim/blue2-4]: started with pid [14880]
process[bluesim/blue3-5]: started with pid [14885]
process[bluesim/blue4-6]: started with pid [14892]
process[bluesim/blue5-7]: started with pid [14897]
process[redsim/red_swarm-8]: started with pid [14900]
process[redsim/red1-9]: started with pid [14910]
process[redsim/red2-10]: started with pid [14911]
process[redsim/red3-11]: started with pid [14913]
process[redsim/red4-12]: started with pid [14925]
process[redsim/red5-13]: started with pid [14931]
brbrbr^C[redsim/red5-13] killing on exit
[redsim/red4-12] killing on exit
[bluesim/blue5-7] killing on exit
[redsim/red3-11] killing on exit
[redsim/red2-10] killing on exit
[redsim/red1-9] killing on exit
[redsim/red_swarm-8] killing on exit
[bluesim/blue4-6] killing on exit
[bluesim/blue3-5] killing on exit
[bluesim/blue2-4] killing on exit
[bluesim/blue1-3] killing on exit
[bluesim/blue_swarm-2] killing on exit
[teleop-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found ' 2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.3 seconds ]
Finished <<< swarm [ 2.5 seconds ]
[build] Summary: All 2 packages succeeded!
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: None.
[build] Runtime: 2.5 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ source devel/setup.bash
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ roslaunch swarm XinLAB2part2.launch
... logging to /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/roslaunch-warmtree-HP-Pavilion-Laptop-15-cc5xx-15330.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://warmtree-HP-Pavilion-Laptop-15-cc5xx:33483/
SUMMARY
========
CLEAR PARAMETERS
* /bluesim/blue1/
* /bluesim/blue2/
* /bluesim/blue3/
* /bluesim/blue4/
* /bluesim/blue5/
* /bluesim/blue_swarm/
* /redsim/red1/
* /redsim/red2/
* /redsim/red3/
* /redsim/red4/
* /redsim/red5/
* /redsim/red_swarm/
PARAMETERS
* /bluesim/blue_swarm/move_key: 98
* /redsim/red_swarm/move_key: 114
* /rosdistro: melodic
* /rosversion: 1.14.3
* /world_size: 2.0
NODES
/bluesim/
blue1 (swarm/swarm_node_v2)
blue2 (swarm/swarm_node_v2)
blue3 (swarm/swarm_node_v2)
blue4 (swarm/swarm_node_v2)
blue5 (swarm/swarm_node_v2)
blue_swarm (swarm/swarm_behavior)
/redsim/
red1 (swarm/swarm_node_v2)
red2 (swarm/swarm_node_v2)
red3 (swarm/swarm_node_v2)
red4 (swarm/swarm_node_v2)
red5 (swarm/swarm_node_v2)
red_swarm (swarm/swarm_behavior)
/
teleop (capture_key/capture_key_node)
ROS_MASTER_URI=http://localhost:11311
process[teleop-1]: started with pid [15346]
process[bluesim/blue_swarm-2]: started with pid [15347]
process[bluesim/blue1-3]: started with pid [15352]
process[bluesim/blue2-4]: started with pid [15359]
process[bluesim/blue3-5]: started with pid [15364]
process[bluesim/blue4-6]: started with pid [15371]
process[bluesim/blue5-7]: started with pid [15376]
process[redsim/red_swarm-8]: started with pid [15379]
process[redsim/red1-9]: started with pid [15387]
process[redsim/red2-10]: started with pid [15394]
process[redsim/red3-11]: started with pid [15400]
process[redsim/red4-12]: started with pid [15403]
process[redsim/red5-13]: started with pid [15413]
brbbb^C[redsim/red4-12] killing on exit
[redsim/red5-13] killing on exit
[redsim/red2-10] killing on exit
[redsim/red3-11] killing on exit
[redsim/red1-9] killing on exit
[redsim/red_swarm-8] killing on exit
[bluesim/blue2-4] killing on exit[bluesim/blue4-6] killing on exit
[bluesim/blue3-5] killing on exit
[bluesim/blue5-7] killing on exit
[bluesim/blue1-3] killing on exit
[bluesim/blue_swarm-2] killing on exit
[teleop-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.2 seconds ]
Finished <<< swarm [ 2.4 seconds ]
[build] Summary: All 2 packages succeeded!
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: None.
[build] Runtime: 2.5 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ source devel/setup.bash
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ roslaunch swarm XinLAB2part2.launch
... logging to /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/roslaunch-warmtree-HP-Pavilion-Laptop-15-cc5xx-16856.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://warmtree-HP-Pavilion-Laptop-15-cc5xx:32991/
SUMMARY
========
CLEAR PARAMETERS
* /bluesim/blue1/
* /bluesim/blue2/
* /bluesim/blue3/
* /bluesim/blue4/
* /bluesim/blue5/
* /bluesim/blue_swarm/
* /redsim/red1/
* /redsim/red2/
* /redsim/red3/
* /redsim/red4/
* /redsim/red5/
* /redsim/red_swarm/
PARAMETERS
* /bluesim/blue_swarm/move_key: 98
* /redsim/red_swarm/move_key: 114
* /rosdistro: melodic
* /rosversion: 1.14.3
* /world_size: 2.0
NODES
/bluesim/
blue1 (swarm/swarm_node_v2)
blue2 (swarm/swarm_node_v2)
blue3 (swarm/swarm_node_v2)
blue4 (swarm/swarm_node_v2)
blue5 (swarm/swarm_node_v2)
blue_swarm (swarm/swarm_behavior)
/redsim/
red1 (swarm/swarm_node_v2)
red2 (swarm/swarm_node_v2)
red3 (swarm/swarm_node_v2)
red4 (swarm/swarm_node_v2)
red5 (swarm/swarm_node_v2)
red_swarm (swarm/swarm_behavior)
/
teleop (capture_key/capture_key_node)
ROS_MASTER_URI=http://localhost:11311
process[teleop-1]: started with pid [16872]
process[bluesim/blue_swarm-2]: started with pid [16873]
process[bluesim/blue1-3]: started with pid [16879]
process[bluesim/blue2-4]: started with pid [16885]
process[bluesim/blue3-5]: started with pid [16891]
process[bluesim/blue4-6]: started with pid [16897]
process[bluesim/blue5-7]: started with pid [16903]
process[redsim/red_swarm-8]: started with pid [16908]
process[redsim/red1-9]: started with pid [16914]
process[redsim/red2-10]: started with pid [16921]
process[redsim/red3-11]: started with pid [16923]
process[redsim/red4-12]: started with pid [16929]
process[redsim/red5-13]: started with pid [16939]
b^C[redsim/red5-13] killing on exit
[redsim/red3-11] killing on exit
[redsim/red2-10] killing on exit
[redsim/red4-12] killing on exit
[redsim/red1-9] killing on exit
[bluesim/blue2-4] killing on exit
[bluesim/blue4-6] killing on exit
[bluesim/blue3-5] killing on exit
[bluesim/blue5-7] killing on exit
[redsim/red_swarm-8] killing on exit
[bluesim/blue1-3] killing on exit
[bluesim/blue_swarm-2] killing on exit
[teleop-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ roslaunch swarm XinLAB2part2.launch
... logging to /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/roslaunch-warmtree-HP-Pavilion-Laptop-15-cc5xx-17711.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://warmtree-HP-Pavilion-Laptop-15-cc5xx:36095/
SUMMARY
========
CLEAR PARAMETERS
* /bluesim/blue1/
* /bluesim/blue2/
* /bluesim/blue3/
* /bluesim/blue4/
* /bluesim/blue5/
* /bluesim/blue_swarm/
* /redsim/red1/
* /redsim/red2/
* /redsim/red3/
* /redsim/red4/
* /redsim/red5/
* /redsim/red_swarm/
PARAMETERS
* /bluesim/blue_swarm/move_key: 98
* /redsim/red_swarm/move_key: 114
* /rosdistro: melodic
* /rosversion: 1.14.3
* /world_size: 2.0
NODES
/bluesim/
blue1 (swarm/swarm_node_v2)
blue2 (swarm/swarm_node_v2)
blue3 (swarm/swarm_node_v2)
blue4 (swarm/swarm_node_v2)
blue5 (swarm/swarm_node_v2)
blue_swarm (swarm/swarm_behavior)
/redsim/
red1 (swarm/swarm_node_v2)
red2 (swarm/swarm_node_v2)
red3 (swarm/swarm_node_v2)
red4 (swarm/swarm_node_v2)
red5 (swarm/swarm_node_v2)
red_swarm (swarm/swarm_behavior)
/
teleop (capture_key/capture_key_node)
ROS_MASTER_URI=http://localhost:11311
process[teleop-1]: started with pid [17727]
process[bluesim/blue_swarm-2]: started with pid [17728]
process[bluesim/blue1-3]: started with pid [17734]
process[bluesim/blue2-4]: started with pid [17736]
process[bluesim/blue3-5]: started with pid [17741]
process[bluesim/blue4-6]: started with pid [17747]
process[bluesim/blue5-7]: started with pid [17757]
process[redsim/red_swarm-8]: started with pid [17764]
process[redsim/red1-9]: started with pid [17766]
process[redsim/red2-10]: started with pid [17771]
process[redsim/red3-11]: started with pid [17778]
process[redsim/red4-12]: started with pid [17786]
process[redsim/red5-13]: started with pid [17793]
^C[redsim/red5-13] killing on exit
[redsim/red2-10] killing on exit
[redsim/red3-11] killing on exit
[redsim/red1-9] killing on exit
[redsim/red4-12] killing on exit
[redsim/red_swarm-8] killing on exit
[bluesim/blue5-7] killing on exit
[bluesim/blue2-4] killing on exit
[bluesim/blue3-5] killing on exit
[bluesim/blue4-6] killing on exit
[bluesim/blue1-3] killing on exit
[bluesim/blue_swarm-2] killing on exit
[teleop-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ roslaunch swarm XinLAB2part2.launch
... logging to /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/roslaunch-warmtree-HP-Pavilion-Laptop-15-cc5xx-17863.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://warmtree-HP-Pavilion-Laptop-15-cc5xx:43479/
SUMMARY
========
CLEAR PARAMETERS
* /bluesim/blue1/
* /bluesim/blue2/
* /bluesim/blue3/
* /bluesim/blue4/
* /bluesim/blue5/
* /bluesim/blue_swarm/
* /redsim/red1/
* /redsim/red2/
* /redsim/red3/
* /redsim/red4/
* /redsim/red5/
* /redsim/red_swarm/
PARAMETERS
* /bluesim/blue_swarm/move_key: 98
* /redsim/red_swarm/move_key: 114
* /rosdistro: melodic
* /rosversion: 1.14.3
* /world_size: 2.0
NODES
/bluesim/
blue1 (swarm/swarm_node_v2)
blue2 (swarm/swarm_node_v2)
blue3 (swarm/swarm_node_v2)
blue4 (swarm/swarm_node_v2)
blue5 (swarm/swarm_node_v2)
blue_swarm (swarm/swarm_behavior)
/redsim/
red1 (swarm/swarm_node_v2)
red2 (swarm/swarm_node_v2)
red3 (swarm/swarm_node_v2)
red4 (swarm/swarm_node_v2)
red5 (swarm/swarm_node_v2)
red_swarm (swarm/swarm_behavior)
/
teleop (capture_key/capture_key_node)
ROS_MASTER_URI=http://localhost:11311
process[teleop-1]: started with pid [17879]
process[bluesim/blue_swarm-2]: started with pid [17880]
process[bluesim/blue1-3]: started with pid [17885]
process[bluesim/blue2-4]: started with pid [17887]
process[bluesim/blue3-5]: started with pid [17889]
process[bluesim/blue4-6]: started with pid [17899]
process[bluesim/blue5-7]: started with pid [17905]
process[redsim/red_swarm-8]: started with pid [17910]
process[redsim/red1-9]: started with pid [17913]
process[redsim/red2-10]: started with pid [17921]
process[redsim/red3-11]: started with pid [17929]
process[redsim/red4-12]: started with pid [17934]
process[redsim/red5-13]: started with pid [17942]
^C[redsim/red5-13] killing on exit
[redsim/red4-12] killing on exit
[redsim/red3-11] killing on exit
[redsim/red2-10] killing on exit
[redsim/red1-9] killing on exit
[redsim/red_swarm-8] killing on exit
[bluesim/blue5-7] killing on exit
[bluesim/blue2-4] killing on exit
[bluesim/blue3-5] killing on exit
[bluesim/blue4-6] killing on exit
[bluesim/blue1-3] killing on exit
[bluesim/blue_swarm-2] killing on exit
[teleop-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.4 seconds ]
Finished <<< swarm [ 0.7 seconds ]
[build] Summary: All 2 packages succeeded!
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: None.
[build] Runtime: 0.7 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [env] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [missing] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Updating package table.
Warning: generated devel space setup files have been deleted.
Starting >>> catkin_tools_prebuild
Finished <<< catkin_tools_prebuild [ 2.8 seconds ]
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 7.3 seconds ]
_______________________________________________________________________________
Errors << swarm:make /home/warmtree/ros/logs/swarm/build.make.000.log
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:45:10: fatal error: swarm/NameAndPose.h: 没有那个文件或目录
#include /*********************************************************************/
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/swarm_node_v2.dir/src/swarm_node_v2.cpp.o] Error 1
make[1]: *** [CMakeFiles/swarm_node_v2.dir/all] Error 2
make[1]: *** 正在等待未完成的任务....
make: *** [all] Error 2
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make --jobserver-fds=4,5 -j; cd -
...............................................................................
Failed << swarm:make [ Exited with code 2 ]
Failed <<< swarm [ 8.5 seconds ]
[build] Summary: 2 of 3 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 11.4 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [env] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [missing] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found ' 2' packages in 0.0 seconds.
[build] Updating package table.
Warning: generated devel space setup files have been deleted.
Starting >>> catkin_tools_prebuild
Finished <<< catkin_tools_prebuild [ 2.8 seconds ]
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 7.6 seconds ]
_______________________________________________________________________________
Errors << swarm:make /home/warmtree/ros/logs/swarm/build.make.000.log
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:45:10: fatal error: swarm/NameAndPose.h: 没有那个文件或目录
#include /*********************************************************************/
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/swarm_node_v2.dir/src/swarm_node_v2.cpp.o] Error 1
make[1]: *** [CMakeFiles/swarm_node_v2.dir/all] Error 2
make[1]: *** 正在等待未完成的任务....
make: *** [all] Error 2
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make --jobserver-fds=4,5 -j; cd -
...............................................................................
Failed << swarm:make [ Exited with code 2 ]
Failed <<< swarm [ 8.5 seconds ]
[build] Summary: 2 of 3 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 11.4 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [env] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [missing] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found ' 2' packages in 0.0 seconds.
[build] Updating package table.
Warning: generated devel space setup files have been deleted.
Starting >>> catkin_tools_prebuild
Finished <<< catkin_tools_prebuild [ 2.9 seconds ]
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 7.6 seconds ]
_______________________________________________________________________________
Errors << swarm:make /home/warmtree/ros/logs/swarm/build.make.000.log
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:45:10: fatal error: swarm/NameAndPose.h: 没有那个文件或目录
#include /*********************************************************************/
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/swarm_node_v2.dir/src/swarm_node_v2.cpp.o] Error 1
make[1]: *** [CMakeFiles/swarm_node_v2.dir/all] Error 2
make[1]: *** 正在等待未完成的任务....
make: *** [all] Error 2
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make --jobserver-fds=4,5 -j; cd -
...............................................................................
Failed << swarm:make [ Exited with code 2 ]
Failed <<< swarm [ 8.4 seconds ]
[build] Summary: 2 of 3 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 11.4 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found ' 2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.3 seconds ]
_______________________________________________________________________________
Errors << swarm:make /home/warmtree/ros/logs/swarm/build.make.001.log
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:45:10: fatal error: swarm/msg/NameAndPose.h: 没有那个文件或目录
#include /*********************************************************************/
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/swarm_node_v2.dir/src/swarm_node_v2.cpp.o] Error 1
make[1]: *** [CMakeFiles/swarm_node_v2.dir/all] Error 2
make: *** [all] Error 2
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make --jobserver-fds=4,5 -j; cd -
...............................................................................
Failed << swarm:make [ Exited with code 2 ]
Failed <<< swarm [ 1.1 seconds ]
[build] Summary: 1 of 2 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 1.1 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ ^C
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ ^C
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ ^C
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found ' 2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.3 seconds ]
_______________________________________________________________________________
Errors << swarm:make /home/warmtree/ros/logs/swarm/build.make.002.log
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:45:10: fatal error: /home/warmtree/ros/src/swarm/msg/NameAndPose.h: 没有那个文件或目录
#include /*********************************************************************/
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/swarm_node_v2.dir/src/swarm_node_v2.cpp.o] Error 1
make[1]: *** [CMakeFiles/swarm_node_v2.dir/all] Error 2
make: *** [all] Error 2
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make --jobserver-fds=4,5 -j; cd -
...............................................................................
Failed << swarm:make [ Exited with code 2 ]
Failed <<< swarm [ 1.0 seconds ]
[build] Summary: 1 of 2 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 1.0 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.2 seconds ]
_______________________________________________________________________________
Errors << swarm:make /home/warmtree/ros/logs/swarm/build.make.003.log
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:45:10: fatal error: /home/warmtree/ros/src/swarm/msg/NameAndPose.h: 没有那个文件或目录
#include /*********************************************************************/
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/swarm_node_v2.dir/src/swarm_node_v2.cpp.o] Error 1
make[1]: *** [CMakeFiles/swarm_node_v2.dir/all] Error 2
make: *** [all] Error 2
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make --jobserver-fds=4,5 -j; cd -
...............................................................................
Failed << swarm:make [ Exited with code 2 ]
Failed <<< swarm [ 1.0 seconds ]
[build] Summary: 1 of 2 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 1.0 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.3 seconds ]
_______________________________________________________________________________
Errors << swarm:make /home/warmtree/ros/logs/swarm/build.make.004.log
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:45:10: fatal error: ros/src/swarm/msg/NameAndPose.h: 没有那个文件或目录
#include /*********************************************************************/
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/swarm_node_v2.dir/src/swarm_node_v2.cpp.o] Error 1
make[1]: *** [CMakeFiles/swarm_node_v2.dir/all] Error 2
make: *** [all] Error 2
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make --jobserver-fds=4,5 -j; cd -
...............................................................................
Failed << swarm:make [ Exited with code 2 ]
Failed <<< swarm [ 1.0 seconds ]
[build] Summary: 1 of 2 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 1.0 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found ' 2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.3 seconds ]
Finished <<< swarm [ 2.6 seconds ]
[build] Summary: All 2 packages succeeded!
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: None.
[build] Runtime: 2.6 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ roslaunch swarm XinLAB2part2.launch
... logging to /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/roslaunch-warmtree-HP-Pavilion-Laptop-15-cc5xx-22658.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://warmtree-HP-Pavilion-Laptop-15-cc5xx:41811/
SUMMARY
========
CLEAR PARAMETERS
* /bluesim/blue1/
* /bluesim/blue2/
* /bluesim/blue3/
* /bluesim/blue4/
* /bluesim/blue5/
* /bluesim/blue_swarm/
* /redsim/red1/
* /redsim/red2/
* /redsim/red3/
* /redsim/red4/
* /redsim/red5/
* /redsim/red_swarm/
PARAMETERS
* /bluesim/blue_swarm/move_key: 98
* /redsim/red_swarm/move_key: 114
* /rosdistro: melodic
* /rosversion: 1.14.3
* /world_size: 2.0
NODES
/bluesim/
blue1 (swarm/swarm_node_v2)
blue2 (swarm/swarm_node_v2)
blue3 (swarm/swarm_node_v2)
blue4 (swarm/swarm_node_v2)
blue5 (swarm/swarm_node_v2)
blue_swarm (swarm/swarm_behavior)
/redsim/
red1 (swarm/swarm_node_v2)
red2 (swarm/swarm_node_v2)
red3 (swarm/swarm_node_v2)
red4 (swarm/swarm_node_v2)
red5 (swarm/swarm_node_v2)
red_swarm (swarm/swarm_behavior)
/
teleop (capture_key/capture_key_node)
ROS_MASTER_URI=http://localhost:11311
process[teleop-1]: started with pid [22674]
process[bluesim/blue_swarm-2]: started with pid [22675]
process[bluesim/blue1-3]: started with pid [22680]
process[bluesim/blue2-4]: started with pid [22686]
process[bluesim/blue3-5]: started with pid [22689]
process[bluesim/blue4-6]: started with pid [22694]
process[bluesim/blue5-7]: started with pid [22700]
process[redsim/red_swarm-8]: started with pid [22710]
process[redsim/red1-9]: started with pid [22716]
process[redsim/red2-10]: started with pid [22722]
process[redsim/red3-11]: started with pid [22725]
process[redsim/red4-12]: started with pid [22733]
process[redsim/red5-13]: started with pid [22740]
b r b r^C[redsim/red5-13] killing on exit
[redsim/red4-12] killing on exit
[redsim/red3-11] killing on exit
[redsim/red2-10] killing on exit
[redsim/red1-9] killing on exit
[bluesim/blue5-7] killing on exit
[redsim/red_swarm-8] killing on exit
[bluesim/blue3-5] killing on exit
[bluesim/blue2-4] killing on exit
[bluesim/blue4-6] killing on exit
[bluesim/blue1-3] killing on exit
[bluesim/blue_swarm-2] killing on exit
[teleop-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ roslaunch swarm XinLAB2part2.launch
... logging to /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/roslaunch-warmtree-HP-Pavilion-Laptop-15-cc5xx-22768.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://warmtree-HP-Pavilion-Laptop-15-cc5xx:33179/
SUMMARY
========
CLEAR PARAMETERS
* /bluesim/blue1/
* /bluesim/blue2/
* /bluesim/blue3/
* /bluesim/blue4/
* /bluesim/blue5/
* /bluesim/blue_swarm/
* /redsim/red1/
* /redsim/red2/
* /redsim/red3/
* /redsim/red4/
* /redsim/red5/
* /redsim/red_swarm/
PARAMETERS
* /bluesim/blue_swarm/move_key: 98
* /redsim/red_swarm/move_key: 114
* /rosdistro: melodic
* /rosversion: 1.14.3
* /world_size: 2.0
NODES
/bluesim/
blue1 (swarm/swarm_node_v2)
blue2 (swarm/swarm_node_v2)
blue3 (swarm/swarm_node_v2)
blue4 (swarm/swarm_node_v2)
blue5 (swarm/swarm_node_v2)
blue_swarm (swarm/swarm_behavior)
/redsim/
red1 (swarm/swarm_node_v2)
red2 (swarm/swarm_node_v2)
red3 (swarm/swarm_node_v2)
red4 (swarm/swarm_node_v2)
red5 (swarm/swarm_node_v2)
red_swarm (swarm/swarm_behavior)
/
teleop (capture_key/capture_key_node)
ROS_MASTER_URI=http://localhost:11311
ERROR: cannot launch node of type [capture_key/capture_key_node]: can't locate node [capture_key_node] in package [capture_key]
ERROR: cannot launch node of type [swarm/swarm_behavior]: can't locate node [swarm_behavior] in package [swarm]
ERROR: cannot launch node of type [swarm/swarm_node_v2]: can't locate node [swarm_node_v2] in package [swarm]
ERROR: cannot launch node of type [swarm/swarm_node_v2]: can't locate node [swarm_node_v2] in package [swarm]
ERROR: cannot launch node of type [swarm/swarm_node_v2]: can't locate node [swarm_node_v2] in package [swarm]
ERROR: cannot launch node of type [swarm/swarm_node_v2]: can't locate node [swarm_node_v2] in package [swarm]
ERROR: cannot launch node of type [swarm/swarm_node_v2]: can't locate node [swarm_node_v2] in package [swarm]
ERROR: cannot launch node of type [swarm/swarm_behavior]: can't locate node [swarm_behavior] in package [swarm]
ERROR: cannot launch node of type [swarm/swarm_node_v2]: can't locate node [swarm_node_v2] in package [swarm]
ERROR: cannot launch node of type [swarm/swarm_node_v2]: can't locate node [swarm_node_v2] in package [swarm]
ERROR: cannot launch node of type [swarm/swarm_node_v2]: can't locate node [swarm_node_v2] in package [swarm]
ERROR: cannot launch node of type [swarm/swarm_node_v2]: can't locate node [swarm_node_v2] in package [swarm]
ERROR: cannot launch node of type [swarm/swarm_node_v2]: can't locate node [swarm_node_v2] in package [swarm]
No processes to monitor
shutting down processing monitor...
... shutting down processing monitor complete
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [env] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [missing] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Updating package table.
Warning: generated devel space setup files have been deleted.
Starting >>> catkin_tools_prebuild
Finished <<< catkin_tools_prebuild [ 2.1 seconds ]
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 5.4 seconds ]
_______________________________________________________________________________
Errors << swarm:make /home/warmtree/ros/logs/swarm/build.make.000.log
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:45:10: fatal error: swarm/NameAndPose.h: 没有那个文件或目录
#include /*********************************************************************/
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/swarm_node_v2.dir/src/swarm_node_v2.cpp.o] Error 1
make[1]: *** [CMakeFiles/swarm_node_v2.dir/all] Error 2
make[1]: *** 正在等待未完成的任务....
make: *** [all] Error 2
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make --jobserver-fds=4,5 -j; cd -
...............................................................................
Failed << swarm:make [ Exited with code 2 ]
Failed <<< swarm [ 6.2 seconds ]
[build] Summary: 2 of 3 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 8.4 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ source devel/setup.bash
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.3 seconds ]
Finished <<< swarm [ 2.7 seconds ]
[build] Summary: All 2 packages succeeded!
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: None.
[build] Runtime: 2.7 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ roslaunch swarm XinLAB2part2.launch
... logging to /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/roslaunch-warmtree-HP-Pavilion-Laptop-15-cc5xx-24094.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://warmtree-HP-Pavilion-Laptop-15-cc5xx:36769/
SUMMARY
========
CLEAR PARAMETERS
* /bluesim/blue1/
* /bluesim/blue2/
* /bluesim/blue3/
* /bluesim/blue4/
* /bluesim/blue5/
* /bluesim/blue_swarm/
* /redsim/red1/
* /redsim/red2/
* /redsim/red3/
* /redsim/red4/
* /redsim/red5/
* /redsim/red_swarm/
PARAMETERS
* /bluesim/blue_swarm/move_key: 98
* /redsim/red_swarm/move_key: 114
* /rosdistro: melodic
* /rosversion: 1.14.3
* /world_size: 2.0
NODES
/bluesim/
blue1 (swarm/swarm_node_v2)
blue2 (swarm/swarm_node_v2)
blue3 (swarm/swarm_node_v2)
blue4 (swarm/swarm_node_v2)
blue5 (swarm/swarm_node_v2)
blue_swarm (swarm/swarm_behavior)
/redsim/
red1 (swarm/swarm_node_v2)
red2 (swarm/swarm_node_v2)
red3 (swarm/swarm_node_v2)
red4 (swarm/swarm_node_v2)
red5 (swarm/swarm_node_v2)
red_swarm (swarm/swarm_behavior)
/
teleop (capture_key/capture_key_node)
ROS_MASTER_URI=http://localhost:11311
process[teleop-1]: started with pid [24110]
process[bluesim/blue_swarm-2]: started with pid [24111]
process[bluesim/blue1-3]: started with pid [24117]
process[bluesim/blue2-4]: started with pid [24122]
process[bluesim/blue3-5]: started with pid [24129]
process[bluesim/blue4-6]: started with pid [24135]
process[bluesim/blue5-7]: started with pid [24140]
process[redsim/red_swarm-8]: started with pid [24146]
process[redsim/red1-9]: started with pid [24149]
process[redsim/red2-10]: started with pid [24154]
process[redsim/red3-11]: started with pid [24164]
process[redsim/red4-12]: started with pid [24166]
process[redsim/red5-13]: started with pid [24175]
b r ^C[redsim/red5-13] killing on exit
[redsim/red4-12] killing on exit
[redsim/red3-11] killing on exit
[redsim/red1-9] killing on exit
[redsim/red2-10] killing on exit
[redsim/red_swarm-8] killing on exit
[bluesim/blue5-7] killing on exit
[bluesim/blue4-6] killing on exit
[bluesim/blue3-5] killing on exit
[bluesim/blue2-4] killing on exit
[bluesim/blue1-3] killing on exit
[bluesim/blue_swarm-2] killing on exit
[teleop-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [env] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [missing] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Updating package table.
Warning: generated devel space setup files have been deleted.
Starting >>> catkin_tools_prebuild
Finished <<< catkin_tools_prebuild [ 2.1 seconds ]
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 5.5 seconds ]
_______________________________________________________________________________
Errors << swarm:make /home/warmtree/ros/logs/swarm/build.make.000.log
/home/warmtree/ros/src/swarm/src/swarm_node_v2.cpp:45:10: fatal error: swarm/NameAndPose.h: 没有那个文件或目录
#include /*********************************************************************/
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/swarm_node_v2.dir/src/swarm_node_v2.cpp.o] Error 1
make[1]: *** [CMakeFiles/swarm_node_v2.dir/all] Error 2
make[1]: *** 正在等待未完成的任务....
make: *** [all] Error 2
cd /home/warmtree/ros/build/swarm; catkin build --get-env swarm | catkin env -si /usr/bin/make --jobserver-fds=4,5 -j; cd -
...............................................................................
Failed << swarm:make [ Exited with code 2 ]
Failed <<< swarm [ 6.3 seconds ]
[build] Summary: 2 of 3 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 8.5 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ source devel/setup.bash
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.3 seconds ]
Finished <<< swarm [ 2.7 seconds ]
[build] Summary: All 2 packages succeeded!
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: None.
[build] Runtime: 2.7 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ roslaunch swarm XinLAB2part2.launch
... logging to /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/roslaunch-warmtree-HP-Pavilion-Laptop-15-cc5xx-25419.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://warmtree-HP-Pavilion-Laptop-15-cc5xx:46113/
SUMMARY
========
CLEAR PARAMETERS
* /bluesim/blue1/
* /bluesim/blue2/
* /bluesim/blue3/
* /bluesim/blue4/
* /bluesim/blue5/
* /bluesim/blue_swarm/
* /redsim/red1/
* /redsim/red2/
* /redsim/red3/
* /redsim/red4/
* /redsim/red5/
* /redsim/red_swarm/
PARAMETERS
* /bluesim/blue_swarm/move_key: 98
* /redsim/red_swarm/move_key: 114
* /rosdistro: melodic
* /rosversion: 1.14.3
* /world_size: 2.0
NODES
/bluesim/
blue1 (swarm/swarm_node_v2)
blue2 (swarm/swarm_node_v2)
blue3 (swarm/swarm_node_v2)
blue4 (swarm/swarm_node_v2)
blue5 (swarm/swarm_node_v2)
blue_swarm (swarm/swarm_behavior)
/redsim/
red1 (swarm/swarm_node_v2)
red2 (swarm/swarm_node_v2)
red3 (swarm/swarm_node_v2)
red4 (swarm/swarm_node_v2)
red5 (swarm/swarm_node_v2)
red_swarm (swarm/swarm_behavior)
/
teleop (capture_key/capture_key_node)
ROS_MASTER_URI=http://localhost:11311
process[teleop-1]: started with pid [25435]
process[bluesim/blue_swarm-2]: started with pid [25436]
process[bluesim/blue1-3]: started with pid [25441]
process[bluesim/blue2-4]: started with pid [25448]
process[bluesim/blue3-5]: started with pid [25450]
process[bluesim/blue4-6]: started with pid [25456]
process[bluesim/blue5-7]: started with pid [25464]
process[redsim/red_swarm-8]: started with pid [25468]
process[redsim/red1-9]: started with pid [25476]
process[redsim/red2-10]: started with pid [25483]
process[redsim/red3-11]: started with pid [25484]
process[redsim/red4-12]: started with pid [25486]
process[redsim/red5-13]: started with pid [25492]
^C[redsim/red5-13] killing on exit
[redsim/red4-12] killing on exit
[redsim/red3-11] killing on exit
[redsim/red2-10] killing on exit
[redsim/red1-9] killing on exit
[bluesim/blue5-7] killing on exit
[bluesim/blue3-5] killing on exit
[bluesim/blue4-6] killing on exit
[bluesim/blue2-4] killing on exit
[redsim/red_swarm-8] killing on exit
[bluesim/blue1-3] killing on exit
[bluesim/blue_swarm-2] killing on exit
[teleop-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.5 seconds ]
Finished <<< swarm [ 2.0 seconds ]
[build] Summary: All 2 packages succeeded!
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: None.
[build] Runtime: 2.0 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
-------------------------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
-------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.3 seconds ]
Finished <<< swarm [ 1.9 seconds ]
[build] Summary: All 2 packages succeeded!
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: None.
[build] Runtime: 2.0 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ roslaunch swarm XinLAB2part2.launch
... logging to /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/roslaunch-warmtree-HP-Pavilion-Laptop-15-cc5xx-26301.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://warmtree-HP-Pavilion-Laptop-15-cc5xx:45261/
SUMMARY
========
CLEAR PARAMETERS
* /bluesim/blue1/
* /bluesim/blue2/
* /bluesim/blue3/
* /bluesim/blue4/
* /bluesim/blue5/
* /bluesim/blue_swarm/
* /redsim/red1/
* /redsim/red2/
* /redsim/red3/
* /redsim/red4/
* /redsim/red5/
* /redsim/red_swarm/
PARAMETERS
* /bluesim/blue_swarm/move_key: 98
* /redsim/red_swarm/move_key: 114
* /rosdistro: melodic
* /rosversion: 1.14.3
* /world_size: 2.0
NODES
/bluesim/
blue1 (swarm/swarm_node_v2)
blue2 (swarm/swarm_node_v2)
blue3 (swarm/swarm_node_v2)
blue4 (swarm/swarm_node_v2)
blue5 (swarm/swarm_node_v2)
blue_swarm (swarm/swarm_behavior)
/redsim/
red1 (swarm/swarm_node_v2)
red2 (swarm/swarm_node_v2)
red3 (swarm/swarm_node_v2)
red4 (swarm/swarm_node_v2)
red5 (swarm/swarm_node_v2)
red_swarm (swarm/swarm_behavior)
/
teleop (capture_key/capture_key_node)
ROS_MASTER_URI=http://localhost:11311
process[teleop-1]: started with pid [26318]
process[bluesim/blue_swarm-2]: started with pid [26319]
process[bluesim/blue1-3]: started with pid [26325]
process[bluesim/blue2-4]: started with pid [26330]
process[bluesim/blue3-5]: started with pid [26336]
process[bluesim/blue4-6]: started with pid [26339]
process[bluesim/blue5-7]: started with pid [26349]
process[redsim/red_swarm-8]: started with pid [26354]
process[redsim/red1-9]: started with pid [26356]
process[redsim/red2-10]: started with pid [26362]
process[redsim/red3-11]: started with pid [26366]
process[redsim/red4-12]: started with pid [26377]
process[redsim/red5-13]: started with pid [26380]
br^C[redsim/red5-13] killing on exit
[redsim/red2-10] killing on exit
[redsim/red3-11] killing on exit
[redsim/red_swarm-8] killing on exit
[redsim/red4-12] killing on exit
[bluesim/blue5-7] killing on exit
[bluesim/blue4-6] killing on exit
[bluesim/blue3-5] killing on exit
[bluesim/blue2-4] killing on exit
[redsim/red1-9] killing on exit
[bluesim/blue1-3] killing on exit
[bluesim/blue_swarm-2] killing on exit
[teleop-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ catkin build
----------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/warmtree/ros
----------------------------------------
Build Space: [exists] /home/warmtree/ros/build
Devel Space: [exists] /home/warmtree/ros/devel
Install Space: [unused] /home/warmtree/ros/install
Log Space: [exists] /home/warmtree/ros/logs
Source Space: [exists] /home/warmtree/ros/src
DESTDIR: [unused] None
----------------------------------------
Devel Space Layout: linked
Install Space Layout: None
----------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
----------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
----------------------------------------
Workspace configuration appears valid.
----------------------------------------
[build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> capture_key
Starting >>> swarm
Finished <<< capture_key [ 0.4 seconds ]
Finished <<< swarm [ 3.8 seconds ]
[build] Summary: All 2 packages succeeded!
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: None.
[build] Runtime: 3.9 seconds total.
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$ roslaunch swarm XinLAB2part2.launch
... logging to /home/warmtree/.ros/log/45439a1a-8619-11ea-bc84-60f677506757/roslaunch-warmtree-HP-Pavilion-Laptop-15-cc5xx-26921.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://warmtree-HP-Pavilion-Laptop-15-cc5xx:36215/
SUMMARY
========
CLEAR PARAMETERS
* /bluesim/blue1/
* /bluesim/blue2/
* /bluesim/blue3/
* /bluesim/blue4/
* /bluesim/blue5/
* /bluesim/blue_swarm/
* /redsim/red1/
* /redsim/red2/
* /redsim/red3/
* /redsim/red4/
* /redsim/red5/
* /redsim/red_swarm/
PARAMETERS
* /bluesim/blue_swarm/move_key: 98
* /redsim/red_swarm/move_key: 114
* /rosdistro: melodic
* /rosversion: 1.14.3
* /world_size: 2.0
NODES
/bluesim/
blue1 (swarm/swarm_node_v2)
blue2 (swarm/swarm_node_v2)
blue3 (swarm/swarm_node_v2)
blue4 (swarm/swarm_node_v2)
blue5 (swarm/swarm_node_v2)
blue_swarm (swarm/swarm_behavior)
/redsim/
red1 (swarm/swarm_node_v2)
red2 (swarm/swarm_node_v2)
red3 (swarm/swarm_node_v2)
red4 (swarm/swarm_node_v2)
red5 (swarm/swarm_node_v2)
red_swarm (swarm/swarm_behavior)
/
teleop (capture_key/capture_key_node)
ROS_MASTER_URI=http://localhost:11311
process[teleop-1]: started with pid [26937]
process[bluesim/blue_swarm-2]: started with pid [26938]
process[bluesim/blue1-3]: started with pid [26944]
process[bluesim/blue2-4]: started with pid [26950]
process[bluesim/blue3-5]: started with pid [26956]
process[bluesim/blue4-6]: started with pid [26961]
process[bluesim/blue5-7]: started with pid [26963]
process[redsim/red_swarm-8]: started with pid [26974]
process[redsim/red1-9]: started with pid [26975]
process[redsim/red2-10]: started with pid [26982]
process[redsim/red3-11]: started with pid [26983]
process[redsim/red4-12]: started with pid [26993]
process[redsim/red5-13]: started with pid [27002]
b r b^C[redsim/red5-13] killing on exit
[redsim/red2-10] killing on exit
[redsim/red4-12] killing on exit
[redsim/red3-11] killing on exit
[bluesim/blue5-7] killing on exit
[redsim/red_swarm-8] killing on exit
[redsim/red1-9] killing on exit
[bluesim/blue4-6] killing on exit
[bluesim/blue2-4] killing on exit
[bluesim/blue3-5] killing on exit
[bluesim/blue1-3] killing on exit
[bluesim/blue_swarm-2] killing on exit
[teleop-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/ros$