To develop Ros, first open the terminal to run: $roscore
$roslaunch catvehicle Catvehicle_follower.launch
[ERROR] [walltime:1503978445.501898] [0.000000] Bad callback: <bound method Cmdvel2gazebo.callback of <__main__.cmdvel2gazebo instance at 0x7f11528450e0>>
Traceback (most recent):
File "/opt/ros/indigo/lib/python2.7/dist-packages/rospy/topics.py", line 720, in _invoke_callback
CB (MSG)
File "/home/fhp/catvehicle_ws/src/catvehicle/src/cmdvel2gazebo.py", line +, in callback
SELF.Z = Max (-self.maxsteer,min (SELF.MAXSTEER,DATA.ANGULAR.Z))
Attributeerror:cmdvel2gazebo instance has no attribute ' Maxsteer '
Solve:
CD ~/CATVEHICLE_WS
SOURCE Devel/setup.bash
Export svga_vgpu10=0
Roslaunch catvehicle Catvehicle_follower.launch
$ roslaunch catvehicle Hectorslam.launch
[ERROR] [1503974373.815068332, 1899.686000000]: Transform failed during publishing of Map_odom Transform:lookup would require ext Rapolation into the past. Requested time 1899.166000000 But the earliest data was at time 1899.306000000, when looking up transform from frame [catve Hicle/base_link] to frame [Catvehicle/odom]
Solve:
Https://answers.ros.org/question/164911/move_base-and-extrapolation-errors-into-the-future/
$gzclient
Error [modeldatabase.cc:383] Unable to parse model.config for Model[http://gazebosim.org/models/calibration_plane]
Error [modeldatabase.cc:383] Unable to parse model.config for Model[http://gazebosim.org/models/checkerboard_plane]
Solution: http://answers.gazebosim.org/question/1509/how-to-solve-these-errors-modeldatabasecc290/
Https://bitbucket.org/osrf/gazebo_models/pull-requests/263/unable-to-parse-modelconfig/diff#comment-None
X Error of failed request:baddrawable (invalid pixmap or Window parameter)
Major opcode of failed request:154 (DRI2)
Minor opcode of failed request:3 (dri2createdrawable)
Resource ID in failed request:0x4400002
Serial Number of failed request:29
Current serial number in output stream:30
FIX: Open Gazebo again
$roslaunch catvehicle Catvehicle_neighborhood.launch
[Gazroslaunch catvehicle catvehicle_neighborhood.launchebo-roslaunch catvehicle CATVEHICLE_NEIGHBORHOOD.LAUNCH2] Process has died [PID 70182, exit code 134, CMD/OPT/ROS/INDIGO/LIB/GAZEBO_ROS/GZSERVER-E ODE/HOME/FHP/CATVEHICLE_WS/SRC /catvehicle/worlds/neighborhood.world __name:=gazebo __log:=/home/fhp/.ros/log/ B2274a4a-8c99-11e7-9967-000c29e8ca7d/gazebo-2.log].
Log file:/home/fhp/.ros/log/b2274a4a-8c99-11e7-9967-000c29e8ca7d/gazebo-2*.log
FIX: Re-install the ROS environment
$rosrun Rviz Rviz
[ERROR] [1503999618.128766367, 40.336000000]: tried to advertise a service which is already advertised in this node [/rviz_15039996 03320481670/compressed/set_parameters]
$roslaunch catvehicle Joystick.launch
[ERROR] [1504082464.785372304]: couldn ' t open joystick/dev/input/js0. Would retry Everysecond.
FIX: sudo chmod +777/dev/input/js0