Comments (4)
Hi,
Can you share your edited launch file please?
Meanwhile, try doing the following:
-
Drag your sweep launch file here:https://github.com/linorobot/linorobot/tree/master/launch/include/lidar
-
Define your LIDAR's transform here: https://github.com/linorobot/linorobot/tree/master/launch/include/lidar
-
Run:
export LINOLIDAR=<name of your launchfile>
Once this is done, you can run Linorobot as per normal.
from linorobot.
Hi,
Sorry for late response. I configured the environment as you said but the error still occurs.
These are the launch files.
../linorobot/launch/include/laser.launch
<launch>
<!-- Run Linorobot compatible laser drivers. Takes reference from env var LINOLIDAR. ie. export LINOLIDAR=xv11 -->
<include file="$(find linorobot)/launch/include/lidar/sweep.launch" />
<!-- Publish static transform of the laser. Define your sensor offset here -->
<node pkg="tf2_ros" type="static_transform_publisher" name="base_link_to_laser" args="0.065 0 0.098 0 0 0 /base_link /laser"/>
</launch>
../linorobot/launch/include/lidar/sweep.launch (here I added the conversion between pc2 and laserscan)
<launch>
<!-- run sweep_node node -->
<node name="sweep_node" pkg="sweep_ros" type="sweep_node" output="screen">
<param name="serial_port" type="string" value="/dev/linolidar"/>
<param name="serial_baudrate" type="int" value="115200"/>
<param name="frame_id" type="string" value="laser"/>
</node>
<!-- run pointcloud_to_laserscan node -->
<node pkg="pointcloud_to_laserscan" type="pointcloud_to_laserscan_node" name="pointcloud_to_laserscan">
<remap from="cloud_in" to="pc2"/>
<rosparam>
target_frame: laser # Leave disabled to output scan in pointcloud frame
transform_tolerance: 0.001
min_height: -1.0
max_height: 1.0
angle_min: -3.14 # -M_PI/2
angle_max: 3.14 # M_PI/2
angle_increment: 0.0174533 # M_PI/360.0
scan_time: 0.1
range_min: 0.0
range_max: 40.0
use_inf: true
# Concurrency level, affects number of pointclouds queued for processing and number of threads used
# 0 : Detect number of cores
# 1 : Single threaded
# 2->inf : Parallelism level
concurrency_level: 1
</rosparam>
</node>
</launch>
from linorobot.
Your launch files looks good. Just omit the pointcloud_to_laserscan.
Also make sure that sweep publishes that data in "laser" frame. Otherwise, you have to rename "laser" in static_transform_publisher to the correct frame the LIDAR is using.
from linorobot.
The problem was not the lidar itself, it worked well, but the udev rules that i've manually created. I observed that each time when I plugged in a new lino device (LiDAR / Arduino Mega) each device was bound on the same ttyUSB* port.
So, I followed the #31 (comment) instructions to configure the libgudev on my ubuntu 18.04, and after the port configurations provided by the lino_udev script, I still had to manually configure the port for Arduino Mega.
But it works now, thank you!
from linorobot.
Related Issues (20)
- firmware not finding lino_msgs/Velocities.h HOT 2
- Big wheel low RPM speed calculation problem
- laser inflation during angular moment HOT 2
- How do I change mapping of SDA and SCL pins for IMU?
- ROS Noetic (Ubuntu 20) HOT 1
- ModuleNotFoundError: No module named 'glib' HOT 2
- Install script doesn't complete and gives "Python 3.6 or greater required" error HOT 2
- Using IMU BNO055 Sensor
- gazebo model for linorobot
- Is it possible to use 1 pwm and 1 dir driven driver in linorobot
- Changing Frequency of PWM Signal
- rplidar a3
- motor driver Model X motor drive module HOT 1
- Rebuild Inst.h from Inst.msg so that platformio sees it HOT 1
- linorobot comparability with teensy LC
- Robot h/w-related questions...
- rosserial error
- scan data infilation
- Need Two Encoders on The Wheels for ACKERMANN1?
- Need adding few Ultrasound Sensors to linorobot2 - humble to avoid obstructions above the LIDAR raytrace
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linorobot.