Ask Your Question
0

LiDAR does not appear in rostopic list?

asked 2019-03-17 00:55:15 -0500

imanpakii gravatar image

updated 2019-03-25 10:32:51 -0500

Hello,

I'm working on Jackal from Clearpath. The robot came with indigo and after a while, I re-imaged it. Now everything is working fine except LiDAR. When I run rostopic list it doesn't show /front/scan in a list. It was showing it before re-imaged the robot.
for running the LiDAR I follow these steps:

  1. sudo apt-get install ros-indigo-lms1xx
  2. cd /opt/ros/indigo/share/lms1xx/launch
  3. sudo cp LMS1xx.launch /etc/ros/indigo/ros.d/

After the above steps I connected the robot to Access Point since our university lab has some IT restriction and it doesn't let me access the robot with SSH.

Immediately after re-imaging the robot the rostopic list shows the /front/scan but when I run rostopic echo /front/scan didn't show any update. I did somthing and it got even worth which dosn't show in rostopic list output.

I connect to the robot with my cellphone hot spot the IPs are :

Robot IP: 192.168.43.140
Host IP: 192.168.43.113

and run the LMS1xx.launch and below are the outputs:

administrator@PNW-ECE:/opt/ros/indigo/share/lms1xx/launch$ ls
LMS1xx.launch
administrator@PNW-ECE:/opt/ros/indigo/share/lms1xx/launch$ roslaunch LMS1xx.launch 
... logging to /home/administrator/.ros/log/40850f36-4830-11e9-82ab-59833ebd9fa1/roslaunch-PNW-ECE-25769.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://192.168.43.140:52473/

SUMMARY
========

PARAMETERS
 * /lms1xx/host: 192.168.1.14
 * /rosdistro: indigo
 * /rosversion: 1.11.21

NODES
  /
    lms1xx (lms1xx/LMS1xx_node)

ROS_MASTER_URI=http://192.168.43.140:11311

core service [/rosout] found
process[lms1xx-1]: started with pid [25799]

I also don't know how can I activate the Lidar node. It seems the node is not activated yet.

Any Help would be appreciated.

Thank you

Update: When I run below command in one terminal, I can see the /front/scan in my rostopic list in another terminal.

roslaunch jackal_navigation gmapping_demo.launch

but still I can't see the output of the lidar.

edit retag flag offensive close merge delete

Comments

1

I don't know anything about this particular ROS node, but I would try to get it working with rosrun before trying to set up launch files for autostart.

ahendrix gravatar image ahendrix  ( 2019-03-19 23:20:30 -0500 )edit

maybe some more information about what exactly you did do when you "re-imaged" it might also be helpful. Did you use a provided image? Did you manually install stuff? ...

mgruhler gravatar image mgruhler  ( 2019-03-20 02:21:37 -0500 )edit

Hi Thank you for your response. I re-imaged with the provided image from clearpath, and I install Lidar stuff myself.

Thank you

imanpakii gravatar image imanpakii  ( 2019-03-20 13:17:42 -0500 )edit

just a few pointers, but I'm lost about what could be your issue:

  • check that the IP of the LMS is actually 192.168.1.14
  • why do you think you have to activate the lidar? The driver should do this for you, if the connection is right...
  • what's that thing with your cellphone hotspot? You are running all those commands on the robot PC itself (connected via ssh), correct?
mgruhler gravatar image mgruhler  ( 2019-03-21 10:30:09 -0500 )edit

Hello @mgruhler 1-Thank you for your response. I checked it with SICK LIDAR software and also when I ping it, it response me back. when I disconnect it, the ping is not working. 2- because when I run rostopic list it does not appear to the list. but when I run for example roslaunch jackal_navigation gmapping_demo.launch and in another terminal do the rostopic list, I can see the /front/scan topic in a list. that's why I think it's not activated. 3- yes I do, but because our university lab has some restrictions in terms of security, the SSH connection doesn't work correctly all the time and also the IP address always change and we need to connect the cable to the robot for obtaining the IP address. That's why We set up an Access point, and if I want to download any packages in ...(more)

imanpakii gravatar image imanpakii  ( 2019-03-21 10:48:12 -0500 )edit

Just a thought I have when I see reports of things working and not working regarding topics. If you're starting and stopping nodes, makes sure that you have roscore running when you start a node. If you kill roscore and restart it, it will lose track of nodes that were running until they have been restarted as well.

billy gravatar image billy  ( 2019-03-21 15:16:47 -0500 )edit

Hello,

I think the roscore is working since another rostopic working properly. for example odometry or IMU or camera, they appear in rostopic list and also when I do the rostopic echo <topic> they are showing the raw data.

Thank you

imanpakii gravatar image imanpakii  ( 2019-03-22 10:03:19 -0500 )edit

Does the lidar node work if you run it manually with rosrun: rosrun lms1xx LMS1xx_node _host:=192.168.1.14 ?

ahendrix gravatar image ahendrix  ( 2019-03-24 16:01:09 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-03-27 17:59:13 -0500

imanpakii gravatar image

This issue finally fixed by adding the JACKAL_LASER=1 parameter in the setup file in /etc/ros/setup.bash. (Thanks to ClearPath Robotic supports and engineers). By adding that parameter the laser read from topic /front/scan instead of /scan. before I added this parameter, gmapping looking for /front/scan and the laser topic published in /scan Thank you everyone who tried to help me.

Thank you Iman

edit flag offensive delete link more

Comments

1

It looks like the jackal launch file also launches the lms1xx driver with the proper topic remapping if JACKAL_LASER is set: https://github.com/jackal/jackal_robo... . Copying LMS1xx.launch to /etc/ros/indigo/ros.d/ seems completely unnecessary.

ahendrix gravatar image ahendrix  ( 2019-03-27 22:12:14 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-03-17 00:55:15 -0500

Seen: 851 times

Last updated: Mar 27 '19