yao62995 / AS_6Dof_Arm

robot arm by ROS & Moveit, Train Deep Reinforcement Algorithms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gazebo:can't locate node [cube_link_pose.py] in package [as_arm_gazebo]

cookiegg opened this issue · comments

ROS_MASTER_URI=http://localhost:11311
core service [/rosout] found
process[gazebo-1]: started with pid [10146]
process[gazebo_gui-2]: started with pid [10150]
process[urdf_spawner-3]: started with pid [10154]
process[object_spawner-4]: started with pid [10155]
process[as_arm/joint_controller_spawner-5]: started with pid [10156]
process[robot_state_publisher-6]: started with pid [10157]
ERROR: cannot launch node of type [as_arm_gazebo/cube_link_pose.py]: can't locate node [cube_link_pose.py] in package [as_arm_gazebo]
process[arm_image_view-8]: started with pid [10158]
process[as_arm/controller_spawner-9]: started with pid [10171]
ERROR: cannot launch node of type [as_arm_gazebo/arm_joint_pose.py]: can't locate node [arm_joint_pose.py] in package [as_arm_gazebo]
ERROR: cannot launch node of type [as_arm_gazebo/arm_joint_sync.py]: can't locate node [arm_joint_sync.py] in package [as_arm_gazebo]
[ INFO] [1479139896.341562149]: Using transport "raw"
Gazebo multi-robot simulator, version 2.2.6
Copyright (C) 2012-2014 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org
spawn_model script started
spawn_model script started
Msg Waiting for master
Msg Connected to gazebo master @ http://127.0.0.1:11345
Msg Publicized address: 192.168.1.139
[ WARN] [1479139896.555830036]: Shutdown request received.
[ WARN] [1479139896.555887261]: Reason given for shutdown: [new node registered with same name]
Gazebo multi-robot simulator, version 2.2.6
Copyright (C) 2012-2014 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org
[INFO] [WallTime: 1479139896.645401] [0.000000] Loading model xml from ros parameter
[INFO] [WallTime: 1479139896.648743] [0.000000] Waiting for service /gazebo/spawn_urdf_model
Exception [Master.cc:50] Unable to start server[bind: Address already in use]. There is probably another Gazebo process running.
Exception [Master.cc:50] Unable to start server[bind: Address already in use]. There is probably another Gazebo process running.
[INFO] [WallTime: 1479139896.652836] [0.000000] Loading model xml from ros parameter
[INFO] [WallTime: 1479139896.655255] [0.000000] Waiting for service /gazebo/spawn_urdf_model
[INFO] [WallTime: 1479139896.720502] [0.000000] Controller Spawner: Waiting for service controller_manager/load_controller
[gazebo-1] process has died [pid 10146, exit code 255, cmd /opt/ros/indigo/lib/gazebo_ros/gzserver -e ode worlds/empty.world __name:=gazebo __log:=/home/forrest/.ros/log/f2f8f1ce-aa70-11e6-9181-708bcda99ddb/gazebo-1.log].
log file: /home/forrest/.ros/log/f2f8f1ce-aa70-11e6-9181-708bcda99ddb/gazebo-1*.log

在执行roslaunch as_arm_gazebo as_arm_bringup.launch的时候,出现这个问题.
相机小窗没有图片,点击的时候会出现没有图像数据的warning.
是需要修改cmakelist的什么地方么?

配置:
ubuntu14.04
ros-indigo
gazebo2.2.6

commented

@cookiegg

  1. ERROR: cannot launch node of type [as_arm_gazebo/cube_link_pose.py]: can't locate node
    无法启动节点是因为对应文件没有可执行权限。
  2. Exception [Master.cc:50] Unable to start server[bind: Address already in use]. There is probably another Gazebo process running.
    Gazebo不能启动多个进程,它们不能共享master节点
  3. CMakeList 只在生成CheckCollision部分有用,其他地方都不用。

多谢,通过你的指点,这个问题解决了。
1.修改文件权限:chomd a+x your_python_scripts.py
2.关闭之前gazebo进程:
+ 先找到进程PID值:lsof -i:123456,这里123456是roslaunch server的端口
+ 再kill -9 pid_value
但是这之后又出现一些新问题,我另开一个问题吧。