Closed odel4y closed 5 years ago
Hey, thanks for reporting that. Can you check if ros-melodic-rospack
is installed on your system?
Its not a direct dependency of lanelet2
but a dependency of mrt_cmake_modules
. I guess we should mention that in the install instructions...
Thanks for the quick answer. Rospack is installed:
ros-melodic-rospack is already the newest version (2.5.2-0bionic.20180906.220829).
Hm. Can test if rospack list-names
works?
That is the command that fails with OSError: [Errno 2] No such file or directory
during the build process.
Yeah that works. I attached the output just in case:
username@username-VirtualBox:~/catkin_ws$ rospack list-names
actionlib
actionlib_msgs
bond
bondcpp
bondpy
catkin
class_loader
cmake_modules
cpp_common
diagnostic_msgs
dynamic_reconfigure
gencpp
geneus
genlisp
genmsg
gennodejs
genpy
geometry_msgs
message_filters
message_generation
message_runtime
mk
nav_msgs
nodelet
nodelet_topic_tools
pluginlib
ros_environment
rosbag
rosbag_migration_rule
rosbag_storage
rosbash
rosboost_cfg
rosbuild
rosclean
rosconsole
rosconsole_bridge
roscpp
roscpp_serialization
roscpp_traits
roscreate
rosgraph
rosgraph_msgs
roslang
roslaunch
roslib
roslisp
roslz4
rosmake
rosmaster
rosmsg
rosnode
rosout
rospack
rosparam
rospy
rosservice
rostest
rostime
rostopic
rosunit
roswtf
sensor_msgs
shape_msgs
smclib
std_msgs
std_srvs
stereo_msgs
topic_tools
trajectory_msgs
visualization_msgs
xmlrpcpp
Are you sure you didn't install that after the build failed? Otherwise I don't see how
import subprocess
subprocess.check_call(["rospack", "list-names"])
should fail during the build process when it works fine if you run it youself...
I tried a few things including installing the full ros-melodic-desktop
package and cleaning the workspace. It compiles successfully now. The catkin clean
seems to have solved my issue. It now also builds with the ros-melodic-ros-base
package. Sorry for the false alert. Still a note about rospack is probably useful in the installation instructions so one does not need the full ROS environment.
For those that want to work with a minimum of ROS dependencies: You need to follow the ROS install instructions but instead of installing a full ROS environment you only need the following packages:
ros-melodic-catkin
ros-melodic-rosbash
ros-melodic-rospack
After that just follow the provided installation guide for Lanelet2.
Hello, I am trying to build the newest lanelet2 from git. I installed ROS Melodic from ros-melodic-ros-base in my Ubuntu 18.04 and then followed your installation instructions (including the extra dependencies). I also downloaded the catkin package into the workspace. When I try to build the workspace it fails with the following error:
I am not sure whether this is due to a misconfiguration on my part or actually a bug in lanelet2.