Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault after I git clone and build,however it's ok when i install by APT #78

Open
Flash-boy opened this issue Oct 28, 2020 · 0 comments

Comments

@Flash-boy
Copy link

Segfault after I git clone and build,however it's ok when i install by APT

  1. build and install by the source code
[ 62%] Linking CXX shared library /home/gy/Documents/ros/WeiMeng/devel/lib/liburg_c_wrapper.so
[ 62%] Built target urg_c_wrapper
[ 68%] Linking CXX executable /home/gy/Documents/ros/WeiMeng/devel/lib/urg_node/getID
[ 75%] Linking CXX shared library /home/gy/Documents/ros/WeiMeng/devel/lib/liburg_node_driver.so
[ 81%] Built target getID
[ 87%] Built target urg_node_driver
[ 93%] Linking CXX executable /home/gy/Documents/ros/WeiMeng/devel/lib/urg_node/urg_node
[100%] Built target urg_node
gy@gy-Default-string:~/Documents/ros/WeiMeng$ 

It,s ok when i build the file and it's ok to ping the device

gy@gy-Default-string:~/Documents/ros/WeiMeng$ ping 192.168.0.10
PING 192.168.0.10 (192.168.0.10) 56(84) bytes of data.
64 bytes from 192.168.0.10: icmp_seq=1 ttl=64 time=0.170 ms
64 bytes from 192.168.0.10: icmp_seq=2 ttl=64 time=0.189 ms
64 bytes from 192.168.0.10: icmp_seq=3 ttl=64 time=0.187 ms
64 bytes from 192.168.0.10: icmp_seq=4 ttl=64 time=0.152 ms
^C
--- 192.168.0.10 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3048ms
rtt min/avg/max/mdev = 0.152/0.174/0.189/0.019 ms

but when i run the node

gy@gy-Default-string:~$ rosrun urg_node urg_node _ip_address:=192.168.0.10
[ INFO] [1603868340.363169912]: Connected to network device with intensity and ID: H1642385
Segmentation fault (core dumped)

so it,s something wrong about the source code?

  1. install by use sudo apt-get install ros-kinetic-urg-node
[ INFO] [1603867460.253374970]: Connected to network device with intensity and ID: H1642385
[ INFO] [1603867460.320499879]: Streaming data.

Everything is OK

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

No branches or pull requests

1 participant