Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cookiegg opened this issue Nov 14, 2016 · 2 comments
Open

Comments

@cookiegg
Copy link

cookiegg commented Nov 14, 2016

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

@yao62995
Copy link
Owner

@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部分有用,其他地方都不用。

@cookiegg
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants