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

can msg has no member named 'is_rtr' or 'is_extended' or 'is_error' #33

Open
Varghesemela opened this issue Feb 6, 2023 · 1 comment

Comments

@Varghesemela
Copy link

src/ros2_socketcan/src/socket_can_receiver_node.cpp:137:15: error: ‘using Frame = struct can_msgs::msg::Frame_<std::allocator<void> >’ {aka ‘struct can_msgs::msg::Frame_<std::allocator<void> >’} has no member named ‘is_rtr’
  137 |     frame_msg.is_rtr = (receive_id.frame_type() == FrameType::REMOTE);
      |               ^~~~~~
src/ros2_socketcan/src/socket_can_receiver_node.cpp:138:15: error: ‘using Frame = struct can_msgs::msg::Frame_<std::allocator<void> >’ {aka ‘struct can_msgs::msg::Frame_<std::allocator<void> >’} has no member named ‘is_extended’
  138 |     frame_msg.is_extended = receive_id.is_extended();
      |               ^~~~~~~~~~~
src/ros2_socketcan/src/socket_can_receiver_node.cpp:139:15: error: ‘using Frame = struct can_msgs::msg::Frame_<std::allocator<void> >’ {aka ‘struct can_msgs::msg::Frame_<std::allocator<void> >’} has no member named ‘is_error’
  139 |     frame_msg.is_error = (receive_id.frame_type() == FrameType::ERROR);

When i build the package, i get the above response. I checked can_msgs and i dont see a problem there.
I have just cloned the repo and built it, No changes to the code yet

@Timple
Copy link
Contributor

Timple commented Apr 8, 2024

Can you reproduce this?

This minimal Dockerfile works:

FROM ros:iron
SHELL [ "/bin/bash", "-c" ]
RUN apt-get update -qq && apt-get install -qqy python3-colcon-core
RUN mkdir -p /ws/src
WORKDIR /ws
RUN git clone https://github.com/autowarefoundation/ros2_socketcan /ws/src/ros2_socketcan
RUN rosdep update && rosdep install --from-paths src --ignore-src -y
RUN source /opt/ros/iron/setup.bash && colcon build

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

2 participants