question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lidar data with ros

See original GitHub issue

https://github.com/carla-simulator/ros-bridge/issues/32#issue-399826561 #34

Hi, I tried steps mentioned in https://github.com/carla-simulator/ros-bridge to run ros-bridge with compiled version of carla 0.9.3

But i am not understanding how to add lidar to get lidar point cloud data in ros and also I am getting below error in ros client_with_rivz.launch terminal after running manaul.py

[INFO] [1551334494.393631, 260.269848]: Reconfigure Request:  speed (0.05, 0.0, 0.5),accel (0.02, 0.0, 0.05),
Traceback (most recent call last):
  File "/home/wipro16/carla_ros_ws/src/ros-bridge-0.9.3/src/carla_ros_bridge/bridge.py", line 157, in _carla_time_tick
    self.update()
  File "/home/wipro16/carla_ros_ws/src/ros-bridge-0.9.3/src/carla_ros_bridge/parent.py", line 159, in update
    actor.update()
  File "/home/wipro16/carla_ros_ws/src/ros-bridge-0.9.3/src/carla_ros_bridge/ego_vehicle.py", line 214, in update
    self.vehicle_control_cycle()
  File "/home/wipro16/carla_ros_ws/src/ros-bridge-0.9.3/src/carla_ros_bridge/ego_vehicle.py", line 450, in vehicle_control_cycle
    self.run_accel_control_loop()
  File "/home/wipro16/carla_ros_ws/src/ros-bridge-0.9.3/src/carla_ros_bridge/ego_vehicle.py", line 567, in run_accel_control_loop
    self.info.current.accel)
  File "/home/wipro16/.local/lib/python2.7/site-packages/simple_pid/PID.py", line 104, in __call__
    self._derivative = -self.Kd * d_input / dt
ZeroDivisionError: float division by zero

and I am able run the vehicle after running manual.py but not ros lidar data. Can someone help Where I am missing!

System : ubuntu 16, ROS Kinetic, python2.7, pip : pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7) exported : egg file from pythonAPI before running ros client launch installed protobuf and simple pid also and libpng16-16

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
AVA19commented, Apr 9, 2019

@gnykumar Can you further explain how you added multiple sensors at same time in manual_control.py

1reaction
gnykumarcommented, Mar 13, 2019

Thanks @JustWon

I added multiple sensor at a time in manual_control.py

Now I am able to see multiple sensors at a time.

Screenshot from 2019-03-13 16-01-22

Read more comments on GitHub >

github_iconTop Results From Across the Web

LiDAR integration with ROS: quickstart guide and projects ideas
In this post, we'll teach you how to make your LiDAR work with ROS. We'll also talk about mobile robots and data fusion!...
Read more >
How to Use a LiDAR Sensor With Robot Operating System ...
Learn how you can use an affordable LiDAR sensor in your robotics design and how to set it up in ROS.
Read more >
How to Publish LIDAR Data Using a ROS Launch File
In this tutorial, I will show you how to publish LIDAR data using a ROS launch file. Table of Contents. Real-World Applications ...
Read more >
Introduction to Working With Laser Scanner Data - ROS Wiki
Otherwise, we've provided a source of laser data for you. ROS can record sensor data (actually any ROS system data) into a bag...
Read more >
How to read LaserScan data (ROS python) - The Construct
The LaserScan topic is called /kobuki/laser/scan. You can type the following command into the terminal to check the topic. $ rostopic echo /kobuki/lase/scan ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found