[Solved]Unable to start catvehicle package
I have been trying to compile and run the given catvehicle package but it didn't work as intended. Using Ubuntu 14.04.5, ros-indigo with gazebo2, all required package installed and catkin build tool finishes compiling successfully:
when trying to run the task 2:
[catvehicle/joint_state_publishercatvehicle-6] process has died [pid 5784, exit code 1, cmd /opt/ros/indigo/lib/joint_state_publisher/joint_state_publisher /joint_states:=/catvehicle/joint_states __name:=joint_state_publishercatvehicle __log:=/home/jd/.ros/log/295d8468-f7ca-11e6-8705-e4a7a00064b9/catvehicle-joint_state_publishercatvehicle-6.log].
log file: /home/jd/.ros/log/295d8468-f7ca-11e6-8705-e4a7a00064b9/catvehicle-joint_state_publishercatvehicle-6*.log
in the rviz:
rviz global status error
and nothing is or can be displayed on the grid.
Did anyone have similar issues?
Are you running with a Virtual Machine? Can you provide the memory/CPU and what version of VMWare you are using? If you could also give the entire trace from the roslaunch catvehicle catvehicle_skidpan.world file, then we can use that as a benchmark.
Are you using Anaconda by chance??
If so you will need to run conda install wxpython
I have heard that some students needed to install wx to make this work, but I'm not sure that I ever installed it: this makes me wonder whether a dependency is missing in new installers that was there when I did the install. samuelwg, did you run exactly:
conda install wxpython
as your solution to this? How will the OP know whether they are running conda?
BUMP
Thanks for sharing this post. Very detailed and informative. Hope to see such post more in the future. https://19216811.zone
I am running on the local machine.
Looks like this after launching skidpad world:
... logging to /home/jd/.ros/log/16f55a24-f8ee-11e6-9e09-e4a7a00064b9/roslaunch-jd-ThinkPad-T460p-2503.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://jd-ThinkPad-T460p:35357/
SUMMARY
========
PARAMETERS
* /catvehicle/distanceEstimator/scan_topic: /catvehicle/front...
* /catvehicle/front_left_steering_position_controller/joint: front_left_steeri...
* /catvehicle/front_left_steering_position_controller/pid/d: 10.0
* /catvehicle/front_left_steering_position_controller/pid/i: 0.01
* /catvehicle/front_left_steering_position_controller/pid/p: 100.0
* /catvehicle/front_left_steering_position_controller/type: position_controll...
* /catvehicle/front_right_steering_position_controller/joint: front_right_steer...
* /catvehicle/front_right_steering_position_controller/pid/d: 10.0
* /catvehicle/front_right_steering_position_controller/pid/i: 0.01
* /catvehicle/front_right_steering_position_controller/pid/p: 100.0
* /catvehicle/front_right_steering_position_controller/type: position_controll...
* /catvehicle/joint1_velocity_controller/joint: back_left_wheel_j...
* /catvehicle/joint1_velocity_controller/pid/d: 10.0
* /catvehicle/joint1_velocity_controller/pid/i: 0.01
* /catvehicle/joint1_velocity_controller/pid/p: 100.0
* /catvehicle/joint1_velocity_controller/type: velocity_controll...
* /catvehicle/joint2_velocity_controller/joint: back_right_wheel_...
* /catvehicle/joint2_velocity_controller/pid/d: 10.0
* /catvehicle/joint2_velocity_controller/pid/i: 0.01
* /catvehicle/joint2_velocity_controller/pid/p: 100.0
* /catvehicle/joint2_velocity_controller/type: velocity_controll...
* /catvehicle/joint_state_controller/publish_rate: 50
* /catvehicle/joint_state_controller/type: joint_state_contr...
* /catvehicle/robot_description: <?xml version="1....
* /catvehicle/tf_prefix: catvehicle
* /rosdistro: indigo
* /rosversion: 1.11.20
* /use_sim_time: True
NODES
/catvehicle/
base_link2slamodom_tf_catvehicle (tf/static_transform_publisher)
cmdvel2gazebocatvehicle (catvehicle/cmdvel2gazebo.py)
controller_spawnercatvehicle (controller_manager/spawner)
distanceEstimator (catvehicle/distanceEstimator)
joint_state_publishercatvehicle (joint_state_publisher/joint_state_publisher)
obstacleStoppercatvehicle (obstaclestopper/obstaclestopper_node)
odom2pathcatvehicle (catvehicle/odom2path.py)
robot_state_publishercatvehicle (robot_state_publisher/robot_state_publisher)
urdf_spawnercatvehicle (gazebo_ros/spawn_model)
/
gazebo (gazebo_ros/gzserver)
auto-starting new master
process[master]: started with pid [2518]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to 16f55a24-f8ee-11e6-9e09-e4a7a00064b9
process[rosout-1]: started with pid [2531]
started core service [/rosout]
process[gazebo-2]: started with pid [2534]
process[catvehicle/urdf_spawnercatvehicle-3]: started with pid [2538]
process[catvehicle/controller_spawnercatvehicle-4]: started with pid [2543]
process[catvehicle/robot_state_publishercatvehicle-5]: started with pid [2552]
process[catvehicle/joint_state_publishercatvehicle-6]: started with pid [2562]
process[catvehicle/base_link2slamodom_tf_catvehicle-7]: started with pid [2563]
process[catvehicle/cmdvel2gazebocatvehicle-8]: started with pid [2564]
process[catvehicle/distanceEstimator-9]: started with pid [2565]
process[catvehicle/obstacleStoppercatvehicle-10]: started with pid [2581]
process[catvehicle/odom2pathcatvehicle-11]: started with pid [2593]
**starting the model**
[ INFO] [1487761215.964461547]: Node namespace is //catvehicle
[ INFO] [1487761215.964559501]: Node name is /catvehicle/distanceEstimator
[ INFO] [1487761215.976261756]: Looking for scan in topic /catvehicle/front_laser_points
[ INFO] [1487761215.976303547]: Publishing estimated distance to target in topic /catvehicle/distanceEstimator/dist
[ INFO] [1487761215.976324117]: Publishing estimated angle to target in topic /catvehicle/distanceEstimator/angle
Traceback (most recent call last):
File "/opt/ros/indigo/lib/joint_state_publisher/joint_state_publisher", line 5, in <module>
import wx
ImportError: No module named wx
[catvehicle/joint_state_publishercatvehicle-6] process has died [pid 2562, exit code 1, cmd /opt/ros/indigo/lib/joint_state_publisher/joint_state_publisher /joint_states:=/catvehicle/joint_states __name:=joint_state_publishercatvehicle __log:=/home/jd/.ros/log/16f55a24-f8ee-11e6-9e09-e4a7a00064b9/catvehicle-joint_state_publishercatvehicle-6.log].
log file: /home/jd/.ros/log/16f55a24-f8ee-11e6-9e09-e4a7a00064b9/catvehicle-joint_state_publishercatvehicle-6*.log
Gazebo multi-robot simulator, version 2.2.3
Copyright (C) 2012-2014 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org
[INFO] [WallTime: 1487761216.176587] [0.000000] /catvehicle/cmdvel2gazebocatvehicle maximum ideal steering angle set to 0.529170071365.
spawn_model script started
[ INFO] [1487761216.265631943]: Finished loading Gazebo ROS API Plugin.
Msg Waiting for master[ INFO] [1487761216.266172521]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
Msg Connected to gazebo master @ http://127.0.0.1:11345
Msg Publicized address: 192.168.0.105
[INFO] [WallTime: 1487761216.363622] [0.000000] Loading model xml from ros parameter
[INFO] [WallTime: 1487761216.368119] [0.000000] Waiting for service /gazebo/spawn_urdf_model
[INFO] [WallTime: 1487761216.390782] [0.000000] Controller Spawner: Waiting for service controller_manager/load_controller
[ INFO] [1487761216.514421787, 1089.366000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1487761216.566626029, 1089.416000000]: Physics dynamic reconfigure ready.
[INFO] [WallTime: 1487761216.672705] [1089.516000] Calling service /gazebo/spawn_urdf_model
[ INFO] [1487761218.262252652, 1089.706000000]: INFO: gazebo_ros_laser plugin should set minimum intensity to 101.000000 due to cutoff in hokuyo filters.
[ INFO] [1487761218.452528236, 1089.706000000]: Camera Plugin (robotNamespace = /catvehicle), Info: Using the 'robotNamespace' param: '/catvehicle'
[ INFO] [1487761218.453668431, 1089.706000000]: Camera Plugin (robotNamespace = /catvehicle), Info: Using the 'robotNamespace' param: '/catvehicle'
[ INFO] [1487761218.457827261, 1089.706000000]: Laser Plugin (robotNamespace = /catvehicle/), Info: Using the 'robotNamespace' param: '/catvehicle/'
[ INFO] [1487761218.457879665, 1089.706000000]: Starting Laser Plugin (ns = /catvehicle/)!
[ INFO] [1487761218.457906262, 1089.706000000]: Camera Plugin (ns = /catvehicle) <tf_prefix_>, set to "catvehicle"
[ INFO] [1487761218.458514654, 1089.706000000]: Camera Plugin (ns = /catvehicle) <tf_prefix_>, set to "catvehicle"
[ INFO] [1487761218.459931387, 1089.706000000]: Laser Plugin (ns = /catvehicle/) <tf_prefix_>, set to "catvehicle"
[INFO] [WallTime: 1487761218.464149] [1089.706000] Spawn status: SpawnModel: Successfully spawned model
[ INFO] [1487761218.477899808, 1089.706000000]: Loading gazebo_ros_control plugin
[ INFO] [1487761218.478004634, 1089.706000000]: Starting gazebo_ros_control plugin in namespace: /catvehicle
[ INFO] [1487761218.478652779, 1089.706000000]: gazebo_ros_control plugin is waiting for model URDF in parameter [/catvehicle/robot_description] on the ROS param server.
[ INFO] [1487761218.638805302, 1089.706000000]: Loaded gazebo_ros_control.
[catvehicle/urdf_spawnercatvehicle-3] process has finished cleanly
log file: /home/jd/.ros/log/16f55a24-f8ee-11e6-9e09-e4a7a00064b9/catvehicle-urdf_spawnercatvehicle-3*.log
[ INFO] [1487761218.644139569, 1089.706000000]: GazeboRosJointStatePublisher is going to publish joint: back_left_wheel_joint
[ INFO] [1487761218.644231433, 1089.706000000]: GazeboRosJointStatePublisher is going to publish joint: back_right_wheel_joint
[ INFO] [1487761218.644253199, 1089.706000000]: GazeboRosJointStatePublisher is going to publish joint: front_left_steering_joint
[ INFO] [1487761218.644272863, 1089.706000000]: GazeboRosJointStatePublisher is going to publish joint: front_right_steering_joint
[ INFO] [1487761218.644297650, 1089.706000000]: GazeboRosJointStatePublisher is going to publish joint: front_right_wheel_joint
[ INFO] [1487761218.644318120, 1089.706000000]: GazeboRosJointStatePublisher is going to publish joint: front_left_wheel_joint
[ INFO] [1487761218.644351629, 1089.706000000]: Starting GazeboRosJointStatePublisher Plugin (ns = /catvehicle/)!, parent name: catvehicle
[ INFO] [1487761218.657541589, 1089.706000000]: $ Callback thread id=7f9eb6b6b700
[INFO] [WallTime: 1487761218.806379] [1089.856000] Controller Spawner: Waiting for service controller_manager/switch_controller
[INFO] [WallTime: 1487761218.807862] [1089.856000] Controller Spawner: Waiting for service controller_manager/unload_controller
[INFO] [WallTime: 1487761218.809494] [1089.866000] Loading controller: joint1_velocity_controller
[INFO] [WallTime: 1487761218.849184] [1089.906000] Loading controller: joint2_velocity_controller
[INFO] [WallTime: 1487761218.858586] [1089.916000] Loading controller: front_left_steering_position_controller
[INFO] [WallTime: 1487761218.898881] [1089.956000] Loading controller: front_right_steering_position_controller
[INFO] [WallTime: 1487761218.908842] [1089.966000] Loading controller: joint_state_controller
[INFO] [WallTime: 1487761218.949169] [1090.006000] Controller Spawner: Loaded controllers: joint1_velocity_controller, joint2_velocity_controller, front_left_steering_position_controller, front_right_steering_position_controller, joint_state_controller
[INFO] [WallTime: 1487761218.959003] [1090.006000] Started controllers: joint1_velocity_controller, joint2_velocity_controller, front_left_steering_position_controller, front_right_steering_position_controller, joint_state_controller
Locally i am currently using python2.7. I tried to fix the "import wx" error by downloading apt-get python wx-tools but
it didn't change error.
Thanks,