gzserver lookup error from libgazebo_ros_control.so file while using roslaunch
Hello,
I am quite new to gazebo and ros, I am trying to launch a gazebo world and spawn a model along with control node using roslaunch. my launch file looks like this :
<!-- We resume the logic in empty_world.launch, changing only the name of the world to be launched -->
<include file="$(find gazebo_ros)/launch/empty_world.launch">
<arg name="world_name" value="$(find spider_gazebo)/worlds/spider.world"/>
<arg name="debug" value="$(arg debug)" />
<arg name="gui" value="$(arg gui)" />
<arg name="paused" value="$(arg paused)"/>
<arg name="use_sim_time" value="$(arg use_sim_time)"/>
<arg name="headless" value="$(arg headless)"/>
<arg name="verbose" value="true" />
</include>
<!-- Load the URDF into the ROS Parameter Server -->
<param name="robot_description"
command="$(find xacro)/xacro.py --inorder '$(find spider_description)/urdf/spider.xacro' " />
<!-- Run a python script to the send a service call to gazebo_ros to spawn a URDF robot -->
<node name="urdf_spawner" pkg="gazebo_ros" type="spawn_model" respawn="false" output="screen"
args="-urdf -model spider -param robot_description"/>
<!-- ros_control spider launch file -->
<include file="$(find spider_control)/launch/spider_control.launch" />
When i tried to launch this using roslaunch , I can see that status of the spawnmodel is succesfully spawnned the entity. but later when starting the gazrbo_ros_control node for my model, I see that the process is finished cleanly and then I get the error. the error is as follows
log file: /home/microbot/.ros/log/477e3f36-9f0d-11e9-abc5-2c6e85b13edd/urdf_spawner-4*.log
gzserver: symbol lookup error: /home/microbot/catkin_ws/devel/lib/libgazebo_ros_control.so: undefined symbol:
_ZN4urdf5Model10initStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
[gazebo-2] process has died [pid 11790, exit code 127, cmd /home/microbot/catkin_ws/src/gazebo_ros/scripts/gzserver --
verbose -e ode /home/microbot/catkin_ws/src/spider/spider_gazebo/worlds/spider.world __name:=gazebo
__log:=/home/microbot/.ros/log/477e3f36-9f0d-11e9-abc5-2c6e85b13edd/gazebo-2.log].
log file: /home/microbot/.ros/log/477e3f36-9f0d-11e9-abc5-2c6e85b13edd/gazebo-2*.log
[Err] [TransportIface.cc:395] Unable to connect to master.
[Err] [GLWidget.cc:856] Unable to connect to a running Gazebo master.
and then it displayz that preparing world and the gazebo is never loaded and hence I had to shutdown the process with ctrl+c, can anyone please helpme with whats causing this error, i sourced and exported ros environment variables , is the verbose argument causing this ? I am using Ros kinetic and gazebo 7.15