Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Prius Wander in City behavior #15

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Prius Wander in City behavior #15

wants to merge 3 commits into from

Conversation

pushkalkatara
Copy link
Member

@pushkalkatara pushkalkatara requested a review from okanasik March 23, 2019 18:34
@okanasik
Copy link
Collaborator

okanasik commented Apr 3, 2019

prius_city.launch is missing from prius_gazebo package. Can you also push that file?

@pushkalkatara
Copy link
Member Author

@okanasik Hi, i added the missing file. please review the PR.

@pushkalkatara
Copy link
Member Author

Hi @okanasik , I think we can merge the behavior.

@jiaweiwuwu
Copy link

Hi @okanasik did you find prius_in_city.world ?

@pushkalkatara
Copy link
Member Author

Hi @jiaweiwuwu You can easily create one using prius_crossing example. I don't know how I missed pushing the world file with the PR.

@jiaweiwuwu
Copy link

Hi @pushkalkatara ,i still get errors when i:~/catkin_ws$ rosrun prius_crossing prius_crossing.py --displaygui=true
runtime gui enabled
/usr/lib/python2.7/dist-packages/numpy/core/_methods.py:59: RuntimeWarning: Mean of empty slice.
warnings.warn("Mean of empty slice.", RuntimeWarning)
/usr/lib/python2.7/dist-packages/numpy/core/_methods.py:70: RuntimeWarning: invalid value encountered in double_scalars
ret = ret.dtype.type(ret / rcount)
Exception in thread Thread-7:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/jiwu/catkin_ws/src/VisualStates/src/visualstates/codegen/python/state.py", line 105, in run
self.currentState.runCode()
File "/home/jiwu/catkin_ws/src/VisualStates-examples-prius_in_city/prius_crossing/prius_crossing.py", line 230, in runCode
steer = self.namespace.calculate_steer_lane()
File "/home/jiwu/catkin_ws/src/VisualStates-examples-prius_in_city/prius_crossing/prius_crossing.py", line 140, in calculate_steer_lane
e = 157 - self.get_steer_error() # 157 - Center Of ROI Frame
File "/home/jiwu/catkin_ws/src/VisualStates-examples-prius_in_city/prius_crossing/prius_crossing.py", line 156, in get_steer_error
front_image = self.bridge.imgmsg_to_cv2(front_image, "bgr8")
File "/opt/ros/kinetic/lib/python2.7/dist-packages/cv_bridge/core.py", line 163, in imgmsg_to_cv2
dtype, n_channels = self.encoding_to_dtype_with_channels(img_msg.encoding)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/cv_bridge/core.py", line 99, in encoding_to_dtype_with_channels
return self.cvtype2_to_dtype_with_channels(self.encoding_to_cvtype2(encoding))
File "/opt/ros/kinetic/lib/python2.7/dist-packages/cv_bridge/core.py", line 96, in encoding_to_cvtype2
raise CvBridgeError(e)
CvBridgeError: Unrecognized image encoding []
And finally,when i try to run prius_in_city,it missing prius_city.world.If you find the missing file (prius_city.world)could you please pushing it please?thank yous.

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

Successfully merging this pull request may close these issues.

3 participants