-
Notifications
You must be signed in to change notification settings - Fork 40
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 this project fit multiple ars_40X? #2
Comments
@wangwenqiangGitHub it will depend on whether you are using same can bus for multiple ars_40X or different can buses.
|
ok, I want to use same canbus for different ars-40X |
This is from the manual. To be able to add up to eight sensors to one CAN bus, the sensor ID can So the message ids will be different for the two sensors once you have configured them. (The sensor ids can be set using the ros service call /set_sensor_id but only one radar should be connected while configuring otherwise all radars would receive the same configuration). After configuring the individual radars, if you are using just two radars, maybe you run two versions of ars_40X_ros and change the message ids for the second radar here: ars_40X/include/ars_40X/ars_40X_can.hpp Lines 21 to 43 in 506ebaa
All of them have to be added with 0x10 so RadarCfg will become 0x200 -> 0x210 and so on. |
I wrote a patch to make the radar use a configurable sensor_id, which can be set via roslaunch arg. This also makes it possible to use the radar without problems after calling the I have only tested it with one radar but now it should work with multiples. I'm creating a pull request. |
thanks, I will change multiple ars_40X sensor_id, Then I used them in same CAN bus |
I see your changed ars_40X ROS project , Maybe have some problem use multiple ars_40X sensor in same CAN bus. we deal with messages in one SockeCAN read() function, after that, We publish this multiple ars_40X sensor messages to ROS |
Not sure if the |
if i want to fit multiple ars_40X, can it fit ?
The text was updated successfully, but these errors were encountered: