ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I was also able to compile make it work with MATLAB 2016b and Boost 1.56 on 64-bit machine. First, I compiled ROS from source with Boost 1.56 using the following tutorial: http://answers.ros.org/question/196227/compiling-win_ros-hydro-on-windows7-64bit-with-vs2013-x64/ Then, I compiled the .cpp file with the following command in MATLAB: mex ROS_sub.cpp stdafx.cpp dllmain.cpp -IC:/opt/rosdeps/hydro/x64/include/ -IC:/opt/ros/hydro/x64/include/ -I. -LC:/opt/rosdeps/hydro/x64/lib/ -LC:/opt/ros/hydro/x64/lib/ -DROS_BUILD_SHARED_LIBS=1 -lroscpp -lroscpp_serialization -lrosconsole -lrostime

I was also able to compile make it work with MATLAB 2016b and Boost 1.56 on 64-bit machine. First, I compiled ROS from source with Boost 1.56 using the following tutorial: http://answers.ros.org/question/196227/compiling-win_ros-hydro-on-windows7-64bit-with-vs2013-x64/ Then, I compiled the .cpp file with the following command in MATLAB: mex ROS_sub.cpp stdafx.cpp dllmain.cpp -IC:/opt/rosdeps/hydro/x64/include/ -IC:/opt/ros/hydro/x64/include/ -I. -LC:/opt/rosdeps/hydro/x64/lib/ -LC:/opt/ros/hydro/x64/lib/ -DROS_BUILD_SHARED_LIBS=1 -lroscpp -lroscpp_serialization -lrosconsole -lrostime